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.
This commit is contained in:
James Cammarata 2015-06-27 00:58:03 -04:00
parent 6d2e1a3b24
commit f68223b9ed

View file

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