You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/makefile

18 lines
296 B
Makefile

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 ${vault}
${playbooks}:
ansible-playbook ${playbooks_dir}/$@.yml