blob: 62d7b562c046c48dad93aca77a6eb6ec7b7f586c (
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
28
29
30
31
32
33
|
---
- name: this lacks a capitalization
hosts: localhost
tasks:
- name: Task that always changes
ansible.builtin.debug:
msg: I always change!
changed_when: true
notify: my handler
- name: Task with notify as list
ansible.builtin.debug:
msg: I always change!
changed_when: true
notify:
- my handler 1
- my handler
- my handler 2
- name: Task without notify
ansible.builtin.debug:
msg: I always change!
changed_when: true
handlers:
- name: my handler
ansible.builtin.debug:
msg: I never run :(
- name: Test task for listen
ansible.builtin.debug:
msg: I never run :(
listen: "my handler"
|