mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Enabled the use of extra vars in playbook file paths when including playbooks from other playbooks.
This commit is contained in:
@@ -130,7 +130,7 @@ class PlayBook(object):
|
||||
|
||||
self.basedir = os.path.dirname(playbook) or '.'
|
||||
utils.plugins.push_basedir(self.basedir)
|
||||
vars = {}
|
||||
vars = extra_vars.copy()
|
||||
if self.inventory.basedir() is not None:
|
||||
vars['inventory_dir'] = self.inventory.basedir()
|
||||
self.filename = playbook
|
||||
|
||||
Reference in New Issue
Block a user