|
|
@ -411,6 +411,9 @@ class Runner(object):
|
|
|
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self.inventory.src() is not None:
|
|
|
|
|
|
|
|
inject['inventory_file'] = self.inventory.src()
|
|
|
|
|
|
|
|
|
|
|
|
# late processing of parameterized sudo_user
|
|
|
|
# late processing of parameterized sudo_user
|
|
|
|
if self.sudo_user is not None:
|
|
|
|
if self.sudo_user is not None:
|
|
|
|
self.sudo_user = template.template(self.basedir, self.sudo_user, inject)
|
|
|
|
self.sudo_user = template.template(self.basedir, self.sudo_user, inject)
|
|
|
|