mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'sergevanginderachter-callback_template_delegate' into devel
This commit is contained in:
commit
2e1aa23570
1 changed files with 5 additions and 0 deletions
|
@ -611,6 +611,11 @@ class Runner(object):
|
||||||
inject['environment'] = self.environment
|
inject['environment'] = self.environment
|
||||||
inject['playbook_dir'] = self.basedir
|
inject['playbook_dir'] = self.basedir
|
||||||
|
|
||||||
|
# template this one is available, callbacks use this
|
||||||
|
delegate_to = self.module_vars.get('delegate_to')
|
||||||
|
if delegate_to:
|
||||||
|
self.module_vars['delegate_to'] = template.template(self.basedir, delegate_to, inject)
|
||||||
|
|
||||||
if self.inventory.basedir() is not None:
|
if self.inventory.basedir() is not None:
|
||||||
inject['inventory_dir'] = self.inventory.basedir()
|
inject['inventory_dir'] = self.inventory.basedir()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue