Last active
December 4, 2017 21:37
-
-
Save geek182/7c80769b0067ae0b95b8f75009597c09 to your computer and use it in GitHub Desktop.
ansible survival kit
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
#check syntax and pass variables | |
#doc dry run | |
ansible-playbook playbook.yml -e env=prod --check | |
#Get fact localhost | |
ansible localhost -m setup | |
#execute local playbook | |
http://docs.ansible.com/ansible/latest/playbooks_delegation.html#local-playbooks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment