Reset basedir for plays that are not from a PlaybookInclude

Fixes #12524 (again)
This commit is contained in:
James Cammarata 2015-10-17 12:44:28 -04:00
parent 0aa018337a
commit a88c59f451

View file

@ -86,6 +86,8 @@ class PlaybookExecutor:
for play in plays:
if play._included_path is not None:
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
self._inventory.remove_restriction()