Reset basedir for plays that are not from a PlaybookInclude
Fixes #12524 (again)
This commit is contained in:
parent
0aa018337a
commit
a88c59f451
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue