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

Fixes using delegate_to: $item within a playbook include.
pull/2198/merge
Daniel Hokka Zakrisson 13 years ago
parent f6e3583b9b
commit 7e0ee6809c

@ -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…
Cancel
Save