Allow use of variables in delegate_to
This commit is contained in:
parent
a69e59ab2b
commit
22e3e7f323
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue