1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow use of variables in delegate_to

This commit is contained in:
Michael DeHaan 2012-10-16 21:05:09 -04:00
parent a69e59ab2b
commit 22e3e7f323

View file

@ -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]