Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
8 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- Make using blocks as handlers a parser error (https://github.com/ansible/ansible/issues/79968) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
test/integration/targets/handlers/test_block_as_handler-import.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- debug: | ||
handlers: | ||
- name: handler | ||
import_tasks: test_block_as_handler-include_import-handlers.yml |
8 changes: 8 additions & 0 deletions
8
test/integration/targets/handlers/test_block_as_handler-include.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- command: echo | ||
notify: handler | ||
handlers: | ||
- name: handler | ||
include_tasks: test_block_as_handler-include_import-handlers.yml |
8 changes: 8 additions & 0 deletions
8
test/integration/targets/handlers/test_block_as_handler-include_import-handlers.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- 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: |
13 changes: 13 additions & 0 deletions
13
test/integration/targets/handlers/test_block_as_handler.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters