blob: d8e87423df7f4e75f9d113c725437b74fbc01993 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
- hosts: localhost
gather_facts: false
tasks:
- name: test notify inheritance in block
notify: hello
block:
- debug: msg='trigger it'
changed_when: true
handlers:
- name: hello
set_fact: hello=world
post_tasks:
- name: ensure handler ran
assert:
that:
- hello is defined
- "hello == 'world'"
|