mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fix group/host var loading relative to playbook basedir
This commit is contained in:
parent
7dd5600839
commit
4e94bb64d8
2 changed files with 14 additions and 8 deletions
|
@ -73,6 +73,7 @@ class PlaybookExecutor:
|
|||
try:
|
||||
for playbook_path in self._playbooks:
|
||||
pb = Playbook.load(playbook_path, variable_manager=self._variable_manager, loader=self._loader)
|
||||
self._inventory.set_playbook_basedir(os.path.dirname(playbook_path))
|
||||
|
||||
if self._tqm is None: # we are doing a listing
|
||||
entry = {'playbook': playbook_path}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue