From aa53212a9b252151c9c34038864d8c93d8002117 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Tue, 23 Jun 2015 10:19:31 -0400 Subject: [PATCH] Don't use all task params for vars, just the module args --- lib/ansible/playbook/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 58788df65b4..44f76c1e134 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -197,7 +197,8 @@ class Task(Base, Conditional, Taggable, Become): if self._task_include: 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: del all_vars['tags']