Commit c16572b6 by Michael DeHaan

Allow use of variables in delegate_to

parent 339c05bb
...@@ -389,6 +389,7 @@ class Runner(object): ...@@ -389,6 +389,7 @@ class Runner(object):
# and we need to transfer those, and only those, variables # and we need to transfer those, and only those, variables
if delegate_to is not None: if delegate_to is not None:
delegate_to = utils.template(self.basedir, delegate_to, inject)
delegate_vars = {} delegate_vars = {}
try: try:
delegate_vars = inject['hostvars'][delegate_to] delegate_vars = inject['hostvars'][delegate_to]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment