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

Don't template delegate_to too early, not all vars are available

Fixes using delegate_to: $item within a playbook include.
This commit is contained in:
Daniel Hokka Zakrisson 2013-02-25 22:25:13 +01:00
parent f6e3583b9b
commit 7e0ee6809c

View file

@ -110,7 +110,6 @@ class Task(object):
# delegate_to can use variables
if not (self.delegate_to is None):
self.delegate_to = utils.template(None, self.delegate_to, self.module_vars)
# delegate_to: localhost should use local transport
if self.delegate_to in ['127.0.0.1', 'localhost']:
self.transport = 'local'