Created
          June 24, 2015 22:09 
        
      - 
      
- 
        Save ahamilton55/35c5db0f189abcea4b6a to your computer and use it in GitHub Desktop. 
Revisions
- 
        ahamilton55 created this gist Jun 24, 2015 .There are no files selected for viewingThis 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,12 @@ $ ansible-playbook -i deploy_conf/localhost -vvv -e group=test test.yml 1 plays in test.yml PLAY: *************************************************************************** TASK [debug msg={{ my_var }}] *************************************************** fatal: [localhost]: FAILED! => {"msg": "ERROR! the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'my_var' is undefined", "failed": true} NO MORE HOSTS LEFT ************************************************************** PLAY RECAP ********************************************************************** localhost : ok=0 changed=0 unreachable=0 failed=1 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,2 @@ --- my_var: "Testing 123" 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,9 @@ --- - hosts: localhost connection: local gather_facts: false vars_files: - group_vars/{{ group }} tasks: - debug: msg="{{ my_var }}"