mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Fixing parentage of include_role objects for param inheritance
Fixes #17686
This commit is contained in:
parent
6be2f0bded
commit
e4ee9de3f4
2 changed files with 9 additions and 5 deletions
|
@ -318,7 +318,7 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
all_vars = dict()
|
||||
if self._parent:
|
||||
all_vars.update(self._parent.get_include_params())
|
||||
if self.action == 'include':
|
||||
if self.action in ('include', 'include_role'):
|
||||
all_vars.update(self.vars)
|
||||
return all_vars
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue