Move vault password file invocation from Makefile to ansible.cfg
This commit is contained in:
parent
faa5ddbca7
commit
6c53d14d5c
2 changed files with 3 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -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}'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
[defaults]
|
||||
vault_password_file = get-vault-password.sh
|
||||
stdout_callback = yaml
|
||||
inventory = inventory.ini
|
||||
|
|
Loading…
Reference in a new issue