dotfiles/home/bin/executable_update.tmpl

14 lines
358 B
Bash

#!/usr/bin/env sh
# provide tags to update with comma seperation (e.g. updates,packages)
set -e
echo -e "Starting update for Fedora..."
# Goto playbook and run it
cd {{ .chezmoi.workingTree }}/provision
# 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 -