summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/test_block_as_handler.yml
blob: bd4f5b991e7a4788991c838b03ea994268aa3ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- hosts: localhost
  gather_facts: false
  tasks:
    - debug:
  handlers:
    - name: handler
      block:
        - name: due to how handlers are implemented, this is correct as it is equivalent to an implicit block
          debug:
        - name: this is a parser error, blocks as handlers are not supported
          block:
            - name: handler in a nested block
              debug: