Skip to content

Instantly share code, notes, and snippets.

@jscheid
Created December 1, 2014 18:47
Show Gist options
  • Save jscheid/5e688b3ba00cd9af6c83 to your computer and use it in GitHub Desktop.
Save jscheid/5e688b3ba00cd9af6c83 to your computer and use it in GitHub Desktop.
bar: 'bar'
foo_json: '{{ foo | to_json }}'
foo: 'foo'
bar_json: '{{ bar | to_json }}'
[dummy]
127.0.0.1
- hosts: all
tasks:
- template: src=template.j2 dest=/tmp/template
ansible-playbook -i hosts.yml playbook.yml
{{ foo_json }}
{{ bar_json }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment