Skip to content

Instantly share code, notes, and snippets.

@jscheid
Created November 29, 2014 13:02
Show Gist options
  • Save jscheid/fac33da8580ad1880606 to your computer and use it in GitHub Desktop.
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
[dummy]
127.0.0.1 somevar='{{ foo | to_json }}'
- hosts: all
tasks:
- template: src=/dev/null dest=/dev/null
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