From 22e3e7f32336db72ed4e851fe0d5cba8ef6973da Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 16 Oct 2012 21:05:09 -0400 Subject: [PATCH] Allow use of variables in delegate_to --- lib/ansible/runner/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 62b9ca432a..1cd16c37c0 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -389,6 +389,7 @@ class Runner(object): # and we need to transfer those, and only those, variables if delegate_to is not None: + delegate_to = utils.template(self.basedir, delegate_to, inject) delegate_vars = {} try: delegate_vars = inject['hostvars'][delegate_to]