makefile: Reworked prinicple of different playbooks
parent
08c85654e4
commit
5c0345f468
@ -1,6 +1,17 @@
|
||||
.PHONY: run vault
|
||||
run:
|
||||
ansible-playbook -i hosts --ask-vault-pass site.yml
|
||||
vault:=group_vars/all/vault.yml
|
||||
playbooks_dir:=playbooks
|
||||
playbooks:=$(wildcard ${playbooks_dir}/*.yml)
|
||||
|
||||
.PHONY: main list vault ${playbooks}
|
||||
|
||||
main:
|
||||
ansible-playbook site.yml
|
||||
|
||||
list:
|
||||
@echo ${playbooks}
|
||||
|
||||
vault:
|
||||
ansible-vault edit group_vars/all/vault.yml
|
||||
ansible-vault edit ${vault}
|
||||
|
||||
${playbooks}:
|
||||
ansible-playbook ${playbooks_dir}/$@.yml
|
||||
|
Loading…
Reference in New Issue