Last active
April 25, 2016 09:57
-
-
Save Mikulas/a0f1a15fb1868d3f40e414a15286e8d1 to your computer and use it in GitHub Desktop.
ansible bug: incorect values in template variables
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 characters
outer = original | |
inner = inner a | |
in template = inner a | |
inner = inner b | |
in template = inner b | |
outer = original |
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 characters
4c4 | |
< in template = inner a | |
--- | |
> in template = original | |
6c6 | |
< in template = inner b | |
--- | |
> in template = original |
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 characters
outer = original | |
inner = inner a | |
in template = original | |
inner = inner b | |
in template = original | |
outer = original |
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 characters
--- | |
- hosts: localhost | |
vars: | |
foo: original | |
foos: | |
- inner a | |
- inner b | |
tasks: | |
- template: | |
src: template.j2 | |
dest: /tmp/template |
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 characters
in template = {{ foo }} |
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 characters
outer = {{ foo }} | |
{% for foo in foos %} | |
inner = {{ foo }} | |
{% include "template-inner.j2" %} | |
{% endfor %} | |
outer = {{ foo }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment