Don't use all task params for vars, just the module args
This commit is contained in:
parent
952166f48e
commit
aa53212a9b
1 changed files with 2 additions and 1 deletions
|
@ -197,7 +197,8 @@ class Task(Base, Conditional, Taggable, Become):
|
||||||
if self._task_include:
|
if self._task_include:
|
||||||
all_vars.update(self._task_include.get_vars())
|
all_vars.update(self._task_include.get_vars())
|
||||||
|
|
||||||
all_vars.update(self.serialize())
|
if isinstance(self.args, dict):
|
||||||
|
all_vars.update(self.args)
|
||||||
|
|
||||||
if 'tags' in all_vars:
|
if 'tags' in all_vars:
|
||||||
del all_vars['tags']
|
del all_vars['tags']
|
||||||
|
|
Loading…
Reference in a new issue