Skip to content

Instantly share code, notes, and snippets.

@geek182
Last active December 4, 2017 21:37
Show Gist options
  • Save geek182/7c80769b0067ae0b95b8f75009597c09 to your computer and use it in GitHub Desktop.
Save geek182/7c80769b0067ae0b95b8f75009597c09 to your computer and use it in GitHub Desktop.
ansible survival kit
#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