Move vault password file invocation from Makefile to ansible.cfg

This commit is contained in:
flyingscorpio@clevo 2022-12-16 09:43:23 +01:00
parent faa5ddbca7
commit 6c53d14d5c
2 changed files with 3 additions and 2 deletions

View file

@ -1,9 +1,9 @@
previous_tags=$(shell cat .roles_played | tr '\n' ',')
%:
ansible-playbook playbook.yml --ask-become-pass -t $@ --vault-password-file=get-vault-password.sh
ansible-playbook playbook.yml --ask-become-pass -t $@
@echo $@ | grep -v all >> .roles_played
@cat .roles_played | sort | uniq > temp && mv temp .roles_played
previous:
ansible-playbook playbook.yml --ask-become-pass -t '${previous_tags}' --vault-password-file=get-vault-password.sh
ansible-playbook playbook.yml --ask-become-pass -t '${previous_tags}'

View file

@ -1,3 +1,4 @@
[defaults]
vault_password_file = get-vault-password.sh
stdout_callback = yaml
inventory = inventory.ini