Created
July 7, 2016 05:20
-
-
Save malinoff/3693d2d672f4952722c68eb8102662dc to your computer and use it in GitHub Desktop.
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-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 |
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
[api] | |
localhost | |
[web:children] | |
api | |
[api:vars] | |
foo=bar | |
[web:vars] | |
foo=baz |
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
--- | |
- 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