Reset basedir for plays that are not from a PlaybookInclude

Fixes #12524 (again)
pull/12806/head
James Cammarata 9 years ago
parent 0aa018337a
commit a88c59f451

@ -86,6 +86,8 @@ class PlaybookExecutor:
for play in plays: for play in plays:
if play._included_path is not None: if play._included_path is not None:
self._loader.set_basedir(play._included_path) self._loader.set_basedir(play._included_path)
else:
self._loader.set_basedir(pb._basedir)
# clear any filters which may have been applied to the inventory # clear any filters which may have been applied to the inventory
self._inventory.remove_restriction() self._inventory.remove_restriction()

Loading…
Cancel
Save