mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Allow use of variables in delegate_to
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user