From 7e0ee6809cb5182eabe948164a4fd8990dec8926 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Mon, 25 Feb 2013 22:25:13 +0100 Subject: [PATCH] Don't template delegate_to too early, not all vars are available Fixes using delegate_to: $item within a playbook include. --- lib/ansible/playbook/task.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 9318b56f09..9150d5683f 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -110,7 +110,6 @@ class Task(object): # delegate_to can use variables if not (self.delegate_to is None): - self.delegate_to = utils.template(None, self.delegate_to, self.module_vars) # delegate_to: localhost should use local transport if self.delegate_to in ['127.0.0.1', 'localhost']: self.transport = 'local'