dotfiles/home/bin/executable_update.tmpl

14 lines
353 B
Cheetah
Raw Normal View History

2022-12-10 17:09:35 -08:00
#!/usr/bin/env sh
# provide tags to update with comma seperation (e.g. updates,packages)
set -e
2022-12-23 16:07:26 -08:00
echo "Starting update for Void..."
2022-12-10 17:09:35 -08:00
# Goto playbook and run it
2022-12-10 23:53:30 -08:00
cd {{ .chezmoi.workingTree }}/provision
2022-12-10 17:09:35 -08:00
# Install ansible and run playbook
ansible-playbook setup.yml -i hosts --ask-become-pass --tags "$1" --skip-tags "once"
# Return to where you were
cd -