Commit f68223b9 by James Cammarata

Don't add module args into variables at all

Getting recursive errors otherwise, so this is probably not something
we want to do. This most likely only worked in v1 due to the fact that
module args were templated earlier than the point in Runner() when
they were fed into the templating engine.
parent 6d2e1a3b
......@@ -199,8 +199,8 @@ class Task(Base, Conditional, Taggable, Become):
if self._task_include:
all_vars.update(self._task_include.get_vars())
if isinstance(self.args, dict):
all_vars.update(self.args)
#if isinstance(self.args, dict):
# all_vars.update(self.args)
if 'tags' in all_vars:
del all_vars['tags']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment