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:
parent
f6e3583b9b
commit
7e0ee6809c
1 changed files with 0 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue