-
-
Save simonmcc/f1c91b95b7cbe80e1624 to your computer and use it in GitHub Desktop.
ansible-playbook -i myInventory demo.yml
This file contains hidden or 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
| PLAY [all] ******************************************************************** | |
| TASK: [ping ] ***************************************************************** | |
| ok: [head0001] | |
| ok: [head0002] | |
| ok: [cpu0001] | |
| ok: [cpu0002] | |
| ok: [head0003] | |
| TASK: [shell uname -a] ******************************************************** | |
| changed: [head0001] | |
| changed: [head0002] | |
| changed: [cpu0002] | |
| changed: [head0003] | |
| changed: [cpu0001] | |
| TASK: [debug var=UNAME] ******************************************************* | |
| ok: [head0002] => { | |
| "var": { | |
| "UNAME": { | |
| "changed": true, | |
| "cmd": "uname -a", | |
| "delta": "0:00:00.002711", | |
| "end": "2015-08-04 09:16:23.247174", | |
| "invocation": { | |
| "module_args": "uname -a", | |
| "module_name": "shell" | |
| }, | |
| "rc": 0, | |
| "start": "2015-08-04 09:16:23.244463", | |
| "stderr": "", | |
| "stdout": "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux", | |
| "stdout_lines": [ | |
| "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" | |
| ], | |
| "warnings": [] | |
| } | |
| } | |
| } | |
| ok: [head0003] => { | |
| "var": { | |
| "UNAME": { | |
| "changed": true, | |
| "cmd": "uname -a", | |
| "delta": "0:00:00.002311", | |
| "end": "2015-08-04 09:16:23.503052", | |
| "invocation": { | |
| "module_args": "uname -a", | |
| "module_name": "shell" | |
| }, | |
| "rc": 0, | |
| "start": "2015-08-04 09:16:23.500741", | |
| "stderr": "", | |
| "stdout": "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux", | |
| "stdout_lines": [ | |
| "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" | |
| ], | |
| "warnings": [] | |
| } | |
| } | |
| } | |
| ok: [cpu0001] => { | |
| "var": { | |
| "UNAME": { | |
| "changed": true, | |
| "cmd": "uname -a", | |
| "delta": "0:00:00.002420", | |
| "end": "2015-08-04 09:16:23.593219", | |
| "invocation": { | |
| "module_args": "uname -a", | |
| "module_name": "shell" | |
| }, | |
| "rc": 0, | |
| "start": "2015-08-04 09:16:23.590799", | |
| "stderr": "", | |
| "stdout": "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux", | |
| "stdout_lines": [ | |
| "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" | |
| ], | |
| "warnings": [] | |
| } | |
| } | |
| } | |
| ok: [head0001] => { | |
| "var": { | |
| "UNAME": { | |
| "changed": true, | |
| "cmd": "uname -a", | |
| "delta": "0:00:00.002707", | |
| "end": "2015-08-04 09:16:23.130455", | |
| "invocation": { | |
| "module_args": "uname -a", | |
| "module_name": "shell" | |
| }, | |
| "rc": 0, | |
| "start": "2015-08-04 09:16:23.127748", | |
| "stderr": "", | |
| "stdout": "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux", | |
| "stdout_lines": [ | |
| "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" | |
| ], | |
| "warnings": [] | |
| } | |
| } | |
| } | |
| ok: [cpu0002] => { | |
| "var": { | |
| "UNAME": { | |
| "changed": true, | |
| "cmd": "uname -a", | |
| "delta": "0:00:00.002626", | |
| "end": "2015-08-04 09:16:23.452591", | |
| "invocation": { | |
| "module_args": "uname -a", | |
| "module_name": "shell" | |
| }, | |
| "rc": 0, | |
| "start": "2015-08-04 09:16:23.449965", | |
| "stderr": "", | |
| "stdout": "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux", | |
| "stdout_lines": [ | |
| "Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" | |
| ], | |
| "warnings": [] | |
| } | |
| } | |
| } | |
| PLAY RECAP ******************************************************************** | |
| cpu0001 : ok=3 changed=1 unreachable=0 failed=0 | |
| cpu0002 : ok=3 changed=1 unreachable=0 failed=0 | |
| head0001 : ok=3 changed=1 unreachable=0 failed=0 | |
| head0002 : ok=3 changed=1 unreachable=0 failed=0 | |
| head0003 : ok=3 changed=1 unreachable=0 failed=0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment