From f68223b9ed8e4405abfcdc53f8ace2cba441c017 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 27 Jun 2015 00:58:03 -0400 Subject: [PATCH] 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. --- lib/ansible/playbook/task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index f0a7350954e..012cd4695a0 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -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']