mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Enabled the use of extra vars in playbook file paths when including playbooks from other playbooks.
This commit is contained in:
parent
c3a8b6ff07
commit
4a732c1e9f
3 changed files with 29 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue