forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whitelist listen as a valid keyword on TaskInclude (ansible#56586)
* Whitelist listen as a valid keyword on TaskInclude. Fixes ansible#56580 * Move 'listen' to HandlerTaskInclude * Remove trailing newline
- Loading branch information
Showing
7 changed files
with
55 additions
and
1 deletion.
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,3 @@ | ||
bugfixes: | ||
- include_tasks - whitelist ``listen`` as a valid keyword | ||
(https://github.com/ansible/ansible/issues/56580) |
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
6 changes: 6 additions & 0 deletions
6
test/integration/targets/include_import/valid_include_keywords/include_me.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,6 @@ | ||
- debug: | ||
msg: include_me | ||
- assert: | ||
that: | ||
- loopy == 1 | ||
- baz == 'qux' |
2 changes: 2 additions & 0 deletions
2
test/integration/targets/include_import/valid_include_keywords/include_me_listen.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,2 @@ | ||
- debug: | ||
msg: listen |
2 changes: 2 additions & 0 deletions
2
test/integration/targets/include_import/valid_include_keywords/include_me_notify.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,2 @@ | ||
- debug: | ||
msg: notify |
39 changes: 39 additions & 0 deletions
39
test/integration/targets/include_import/valid_include_keywords/playbook.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,39 @@ | ||
- hosts: localhost | ||
gather_facts: false | ||
handlers: | ||
- include_tasks: include_me_listen.yml | ||
listen: | ||
- include_me_listen | ||
|
||
- name: Include Me Notify | ||
include_tasks: include_me_notify.yml | ||
|
||
tasks: | ||
- name: Include me | ||
include_tasks: include_me.yml | ||
args: | ||
apply: | ||
tags: | ||
- bar | ||
debugger: ~ | ||
ignore_errors: false | ||
loop: | ||
- 1 | ||
loop_control: | ||
loop_var: loopy | ||
no_log: false | ||
register: this_isnt_useful | ||
run_once: true | ||
tags: | ||
- foo | ||
vars: | ||
baz: qux | ||
when: true | ||
|
||
- command: "true" | ||
notify: | ||
- include_me_listen | ||
|
||
- command: "true" | ||
notify: | ||
- Include Me Notify |