diff --git a/bin/dotfiles b/bin/dotfiles index 849c69d..016943a 100755 --- a/bin/dotfiles +++ b/bin/dotfiles @@ -27,7 +27,12 @@ fi pushd "$DOTFILES_DIR" > /dev/null 2>&1 +# Update Ansible Galaxy +echo -e "Upating Ansible Galaxy..." +ansible-galaxy install -r requirements.yml > /dev/null 2>&1 + # Run playbook +echo -e "Running playbook..." if [[ -f $VAULT_SECRET ]]; then echo -e "Using vault config file" ansible-playbook --vault-password-file $VAULT_SECRET "$DOTFILES_DIR/playbook.yml" "$@" diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..552adfe --- /dev/null +++ b/requirements.yml @@ -0,0 +1,2 @@ +collections: + - community.general