Skip to content

Instantly share code, notes, and snippets.

@nanobeep
Created June 12, 2017 13:12
Show Gist options
  • Save nanobeep/fe255a00191395ec83a154ff403c9981 to your computer and use it in GitHub Desktop.
Save nanobeep/fe255a00191395ec83a154ff403c9981 to your computer and use it in GitHub Desktop.
# Logically group the hosts
[lb]
lb.poc
[app]
app1.poc
app2.poc
# Make parent group containing all groups
[staging:children]
lb
app
# Set variables for the parent group here
[staging:vars]
ansible_ssh_user=root
ansible_ssh_private_key_file=~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment