summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-jinja-fail.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/playbooks/rule-jinja-fail.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/playbooks/rule-jinja-fail.yml b/examples/playbooks/rule-jinja-fail.yml
new file mode 100644
index 0000000..c7bf5ba
--- /dev/null
+++ b/examples/playbooks/rule-jinja-fail.yml
@@ -0,0 +1,12 @@
+---
+- name: Fixture
+ hosts: localhost
+ tasks:
+ - name: A block used to check that we do not identify error at correct level
+ block:
+ - name: Foo # <-- this is valid jinja2
+ ansible.builtin.debug:
+ foo: "{{ 1 }}" # <-- jinja2[spacing]
+ msg: "{{ 'a' b }}" # <-- jinja2[invalid]
+# It should be noted that even ansible --syntax-check fails to spot the jinja
+# error above, but ansible will throw a runtime error when running