Fix group/host var loading relative to playbook basedir

This commit is contained in:
James Cammarata 2015-07-14 09:26:24 -04:00
parent 7dd5600839
commit 4e94bb64d8
2 changed files with 14 additions and 8 deletions

View file

@ -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}