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.
pull/11408/head
James Cammarata 10 years ago
parent 6d2e1a3b24
commit f68223b9ed

@ -199,8 +199,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())
if isinstance(self.args, dict): #if isinstance(self.args, dict):
all_vars.update(self.args) # all_vars.update(self.args)
if 'tags' in all_vars: if 'tags' in all_vars:
del all_vars['tags'] del all_vars['tags']

Loading…
Cancel
Save