summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/test_block_as_handler.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/handlers/test_block_as_handler.yml')
-rw-r--r--test/integration/targets/handlers/test_block_as_handler.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/handlers/test_block_as_handler.yml b/test/integration/targets/handlers/test_block_as_handler.yml
new file mode 100644
index 0000000..bd4f5b9
--- /dev/null
+++ b/test/integration/targets/handlers/test_block_as_handler.yml
@@ -0,0 +1,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: