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
|
# delegate_to can use variables
|
||||||
if not (self.delegate_to is None):
|
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
|
# delegate_to: localhost should use local transport
|
||||||
if self.delegate_to in ['127.0.0.1', 'localhost']:
|
if self.delegate_to in ['127.0.0.1', 'localhost']:
|
||||||
self.transport = 'local'
|
self.transport = 'local'
|
||||||
|
|
Loading…
Reference in a new issue