mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
464 B
YAML
26 lines
464 B
YAML
2 years ago
|
- hosts: A
|
||
|
gather_facts: false
|
||
|
tasks:
|
||
|
- command: echo
|
||
|
notify:
|
||
|
- handler1
|
||
|
- self_notify
|
||
|
handlers:
|
||
|
- name: handler1
|
||
|
debug:
|
||
|
msg: handler1 ran
|
||
|
changed_when: true
|
||
|
notify: handler2
|
||
|
|
||
|
- name: handler2
|
||
|
debug:
|
||
|
msg: handler2 ran
|
||
|
changed_when: true
|
||
|
notify: handler1
|
||
|
|
||
|
- name: self_notify
|
||
|
debug:
|
||
|
msg: self_notify ran
|
||
|
changed_when: true
|
||
|
notify: self_notify
|