summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule_literal_compare_fail.yml
blob: 6448d70a3555ca2e096b3db71c9eeb435c4e784b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
- name: Fixture for literal-compare
  hosts: localhost
  tasks:
    - name: Example task # <-- 1st
      ansible.builtin.debug:
        msg: test
      when: my_var == True

    - name: Example task # <-- 2nd
      ansible.builtin.debug:
        msg: test
      when: my_var == false

    - name: Another example task # <-- 3rd
      ansible.builtin.debug:
        msg: test
      when:
        - my_var == false