Created
June 10, 2015 22:00
-
-
Save ahamilton55/fc792909ded73ba85f70 to your computer and use it in GitHub Desktop.
Revisions
-
ahamilton55 created this gist
Jun 10, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ --- - hosts: localhost connection: local vars: my_var: {"something": "{{ truth3 }}" } tasks: - debug: msg="Hello" when: truth4 is not defined and my_var is defined =============== ± % ansible-playbook -i deploy_conf/localhost test.yml PLAY: *************************************************************************** TASK [setup] ******************************************************************** ok: [localhost] TASK [debug msg=Hello] ********************************************************** fatal: [localhost]: FAILED! => {"failed": true, "stdout": ""} NO MORE HOSTS LEFT ************************************************************** PLAY RECAP ********************************************************************** localhost : ok=1 changed=0 unreachable=0 failed=1