summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-jinja-invalid.yml
blob: c7bf5ba93ee38528fb881d195edf0b6a973cbc38 (plain)
1
2
3
4
5
6
7
8
9
10
11
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