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_block_as_handler.yml

14 lines
396 B
YAML

- 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: