Created
November 29, 2014 13:02
-
-
Save jscheid/fac33da8580ad1880606 to your computer and use it in GitHub Desktop.
Can't use extra vars in host vars with to_json in 1.8
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
[dummy] | |
127.0.0.1 somevar='{{ foo | to_json }}' |
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: all | |
tasks: | |
- template: src=/dev/null dest=/dev/null |
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 hosts.yml playbook.yml --extra-vars=foo=bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment