Last active
December 14, 2017 13:59
-
-
Save hgrimelid/9085a2f1965279e5257e261d8d65434b to your computer and use it in GitHub Desktop.
Ansible notes
This file contains 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
# Ansible inventory syntax example with ssh username and port number | |
[group] | |
servername_or_ip ansible_user=USERNAME ansible_port=PORT |
This file contains 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
# Run playbook for | |
# - group in hosts file | |
# - extra vars | |
# - step through tasks | |
ansible-playbook -i HOSTS_FILE -l HOSTS_GROUP --extra-vars "VAR_1=VALUE_1 VAR_2=VALUE_2" --step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment