Skip to content

Instantly share code, notes, and snippets.

@konstantin-kelemen
Created March 29, 2018 12:58
Show Gist options
  • Save konstantin-kelemen/91c3d47edba0ea77736edf03df7616f6 to your computer and use it in GitHub Desktop.
Save konstantin-kelemen/91c3d47edba0ea77736edf03df7616f6 to your computer and use it in GitHub Desktop.
ansible-playbook -i inventory main.yml --check -c local
PLAY [Ansible child group test] ************************************************
TASK [debug] *******************************************************************
ok: [host01] => (item=host02) => {
"item": "host02",
"msg": "nl"
}
ok: [host02] => (item=host02) => {
"item": "host02",
"msg": "nl"
}
ok: [host01] => (item=host03) => {
"item": "host03",
"msg": "us"
}
ok: [host02] => (item=host03) => {
"item": "host03",
"msg": "us"
}
ok: [host03] => (item=host02) => {
"item": "host02",
"msg": "nl"
}
ok: [host03] => (item=host03) => {
"item": "host03",
"msg": "us"
}
PLAY RECAP *********************************************************************
host01 : ok=1 changed=0 unreachable=0 failed=0
host02 : ok=1 changed=0 unreachable=0 failed=0
host03 : ok=1 changed=0 unreachable=0 failed=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment