Fixing parentage of include_role objects for param inheritance

Fixes #17686
This commit is contained in:
James Cammarata 2016-09-30 16:05:43 -05:00
parent 6be2f0bded
commit e4ee9de3f4
2 changed files with 9 additions and 5 deletions

View file

@ -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