-
-
Save rmetzler/d7c6938c989a16b654517627417cfe81 to your computer and use it in GitHub Desktop.
ansible-playbook-makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HOSTS=host_a host_b | |
| INVENTORY=../data/inventory.inv | |
| PLAYBOOK=../playbooks/test.yml | |
| TIMEOUT=600 | |
| deploy: all_hosts | |
| all_hosts: $(HOSTS) | |
| $(HOSTS): | |
| timeout -s KILL $(TIMEOUT) ansible-playbook -i $(INVENTORY) $(PLAYBOOK) -l $@ | |
| touch $@ | |
| clean: | |
| rm -f $(HOSTS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment