mirror of https://github.com/ansible/ansible.git
Whitelist listen as a valid keyword on TaskInclude (#56586)
* Whitelist listen as a valid keyword on TaskInclude. Fixes #56580 * Move 'listen' to HandlerTaskInclude * Remove trailing newlinepull/56599/head
parent
b5935486da
commit
576593e175
@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- include_tasks - whitelist ``listen`` as a valid keyword
|
||||
(https://github.com/ansible/ansible/issues/56580)
|
@ -0,0 +1,6 @@
|
||||
- debug:
|
||||
msg: include_me
|
||||
- assert:
|
||||
that:
|
||||
- loopy == 1
|
||||
- baz == 'qux'
|
@ -0,0 +1,2 @@
|
||||
- debug:
|
||||
msg: listen
|
@ -0,0 +1,2 @@
|
||||
- debug:
|
||||
msg: notify
|
@ -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
|
Loading…
Reference in New Issue