summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-no-jinja-when-fail.yml
blob: 15778eaee2b83aa0f4424188e98b095f341afb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: One
  hosts: all
  tasks:
    - name: Test when with jinja2 # noqa: jinja[spacing]
      ansible.builtin.debug:
        msg: text
      when: "{{ false }}"

- name: Two
  hosts: all
  roles:
    - role: test
      when: "{{ '1' = '1' }}"

- name: Three
  hosts: all
  roles:
    - role: test
      when:
        - "{{ '1' = '1' }}"