17 lines
498 B
Bash
Executable file
17 lines
498 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if ! command -v uv >/dev/null 2>&1; then
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
fi
|
|
|
|
if [[ -d ~/.config/dotfiles ]]; then
|
|
|
|
# dotfiles are cloned, executed localy
|
|
uvx --with ansible --from ansible-core ansible-playbook --ask-become-pass bootstrap.yaml
|
|
|
|
else
|
|
|
|
# dotfiles are not cloned, executed remotly
|
|
uvx --with ansible --from ansible-core ansible-pull --ask-become-pass --url ssh://git@git.alecodes.page:24062/alecodes/dots.git bootstrap/bootstrap.yaml
|
|
|
|
fi
|