mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Save the included directory for playbook includes for use as the basedir
Fixes #12524
This commit is contained in:
@@ -83,6 +83,9 @@ class PlaybookExecutor:
|
||||
self._display.vv('%d plays in %s' % (len(plays), playbook_path))
|
||||
|
||||
for play in plays:
|
||||
if play._included_path is not None:
|
||||
self._loader.set_basedir(play._included_path)
|
||||
|
||||
# clear any filters which may have been applied to the inventory
|
||||
self._inventory.remove_restriction()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user