Debian Codegraph @

test/integration/targets/handlers/test_block_as_handler.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 tasks:
4 - debug:
5 handlers:
6 - name: handler
7 block:
8 - name: due to how handlers are implemented, this is correct as it is equivalent to an implicit block
9 debug:
10 - name: this is a parser error, blocks as handlers are not supported
11 block:
12 - name: handler in a nested block
13 debug: