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.
ansible/test/integration/targets/handlers/test_multiple_handlers_with...

37 lines
731 B
YAML

---
- name: test multiple handlers with recursive notification
hosts: localhost
gather_facts: false
tasks:
- name: notify handler 1
command: echo
changed_when: true
notify: handler 1
- meta: flush_handlers
- name: verify handlers
assert:
that:
- "ran_handler_1 is defined"
- "ran_handler_2a is defined"
- "ran_handler_2b is defined"
handlers:
- name: handler 1
set_fact:
ran_handler_1: True
changed_when: true
notify: handler_2
- name: handler 2a
set_fact:
ran_handler_2a: True
listen: handler_2
- name: handler 2b
set_fact:
ran_handler_2b: True
listen: handler_2