mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Reset basedir for plays that are not from a PlaybookInclude
Fixes #12524 (again)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user