mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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:
|
||||
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()
|
||||
|
|
Loading…
Reference in a new issue