Debian Codegraph @

test/integration/targets/blocks/inherit_notify.yml

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