Created
October 17, 2013 22:28
-
-
Save tgerla/7033443 to your computer and use it in GitHub Desktop.
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
| Timothys-MacBook-Pro:ansible-test tgerla$ ansible-playbook -i localhost, test-includes.yml -e myvar=this | |
| PLAY [localhost] ************************************************************** | |
| GATHERING FACTS *************************************************************** | |
| ok: [localhost] | |
| TASK: [debug msg=hi] ********************************************************** | |
| skipping: [localhost] | |
| PLAY RECAP ******************************************************************** | |
| localhost : ok=1 changed=0 unreachable=0 failed=0 | |
| Timothys-MacBook-Pro:ansible-test tgerla$ ansible-playbook -i localhost, test-includes.yml -e myvar=that | |
| PLAY [localhost] ************************************************************** | |
| GATHERING FACTS *************************************************************** | |
| ok: [localhost] | |
| TASK: [debug msg=hi] ********************************************************** | |
| ok: [localhost] => { | |
| "item": "", | |
| "msg": "hi" | |
| } | |
| PLAY RECAP ******************************************************************** | |
| localhost : ok=2 changed=0 unreachable=0 failed=0 | |
| Timothys-MacBook-Pro:ansible-test tgerla$ |
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
| - debug: msg=hi |
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
| --- | |
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - include: includes.yml | |
| when: myvar == "that" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment