blob: 28840ceedf22ae5912a6a57082cb1216fdece8d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
- name: Fixture for no-handler rule
hosts: all
tasks:
- name: This should trigger no-handler rule # noqa: no-changed-when
ansible.builtin.command: echo could be done better
when: result is changed
- name: Do anything # noqa: no-changed-when
ansible.builtin.command: echo 123
when:
- something.changed
- name: This should be a handler
ansible.builtin.debug:
msg: why isn't this a handler
when: result.changed
- name: This should be a handler 3 # noqa: literal-compare
ansible.builtin.debug:
msg: why isn't this a handler
when: result.changed == true
- name: This should be a handler 4 # noqa: literal-compare
ansible.builtin.debug:
msg: why isn't this a handler
when: result['changed'] == true
|