summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrian Coca <briancoca+ansible@gmail.com>2012-11-19 15:44:54 +0100
committerBrian Coca <briancoca+dev@gmail.com>2012-11-26 16:41:13 +0100
commitd751d88b48f6f6886175bab1d1bae1653da3c900 (patch)
tree7cd58dafd4dbb5763ef5457fe1c1cdcda28ecb4b /test
parentadded ability to override jinja enviornment from first line of template Signe... (diff)
downloadansible-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.tpl10
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 }}
+