mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Merge remote-tracking branch 'svg/varsplugins_refactor' into svg_and_inventory_refactor
This commit is contained in:
@@ -164,6 +164,10 @@ class PlayBook(object):
|
||||
|
||||
self.basedir = os.path.dirname(playbook) or '.'
|
||||
utils.plugins.push_basedir(self.basedir)
|
||||
|
||||
# let inventory know the playbook basedir so it can load more vars
|
||||
self.inventory.set_playbook_basedir(self.basedir)
|
||||
|
||||
vars = extra_vars.copy()
|
||||
vars['playbook_dir'] = self.basedir
|
||||
if self.inventory.basedir() is not None:
|
||||
|
||||
Reference in New Issue
Block a user