mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
implemented 'inventory_file' variable. Closes GH-3789.
This commit is contained in:
@@ -410,6 +410,9 @@ class Runner(object):
|
||||
if self.inventory.basedir() is not None:
|
||||
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
|
||||
if self.sudo_user is not None:
|
||||
self.sudo_user = template.template(self.basedir, self.sudo_user, inject)
|
||||
|
||||
Reference in New Issue
Block a user