diff options
author | Brian Coca <briancoca+ansible@gmail.com> | 2012-11-19 15:44:54 +0100 |
---|---|---|
committer | Brian Coca <briancoca+dev@gmail.com> | 2012-11-26 16:41:13 +0100 |
commit | d751d88b48f6f6886175bab1d1bae1653da3c900 (patch) | |
tree | 7cd58dafd4dbb5763ef5457fe1c1cdcda28ecb4b /test | |
parent | added ability to override jinja enviornment from first line of template Signe... (diff) | |
download | ansible-d751d88b48f6f6886175bab1d1bae1653da3c900.tar.xz ansible-d751d88b48f6f6886175bab1d1bae1653da3c900.zip |
added test for template overrides Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/jinja2_overrides.tpl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/jinja2_overrides.tpl b/test/jinja2_overrides.tpl new file mode 100644 index 0000000000..4d7a55c04a --- /dev/null +++ b/test/jinja2_overrides.tpl @@ -0,0 +1,10 @@ +#env: variable_end_string: @@, variable_start_string: @@ + +{% raw %} + if this succeeds you should see '{{ ansible_hostname }}' with the hostname on the line above + if this fails you should see '@@ ansible_hostname @@' with the hostname on the line beneath +{% endraw %} + +@@ ansible_hostname @@ +{{ ansible_hostname }} + |