Skip to content

Instantly share code, notes, and snippets.

@malinoff
Created July 7, 2016 05:20
Show Gist options
  • Save malinoff/3693d2d672f4952722c68eb8102662dc to your computer and use it in GitHub Desktop.
Save malinoff/3693d2d672f4952722c68eb8102662dc to your computer and use it in GitHub Desktop.
ansible-playbook -i inventory -c local play.yml
PLAY [api] *********************************************************************
TASK [setup] *******************************************************************
Thursday 07 July 2016 11:10:52 +0600 (0:00:00.050) 0:00:00.050 *********
ok: [localhost]
TASK [debug] *******************************************************************
Thursday 07 July 2016 11:10:53 +0600 (0:00:01.559) 0:00:01.609 *********
ok: [localhost] => {
"foo": "bar"
}
PLAY [web] *********************************************************************
TASK [debug] *******************************************************************
Thursday 07 July 2016 11:10:54 +0600 (0:00:00.072) 0:00:01.681 *********
ok: [localhost] => {
"foo": "bar"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0
Thursday 07 July 2016 11:10:54 +0600 (0:00:00.051) 0:00:01.733 *********
===============================================================================
setup ------------------------------------------------------------------- 1.56s
debug ------------------------------------------------------------------- 0.07s
debug ------------------------------------------------------------------- 0.05s
[api]
localhost
[web:children]
api
[api:vars]
foo=bar
[web:vars]
foo=baz
---
- hosts: api
tasks:
- debug: var=foo
- hosts: web
tasks:
- debug: var=foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment