mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Save the included directory for playbook includes for use as the basedir
Fixes #12524
This commit is contained in:
parent
4226e49bc6
commit
ffdba96668
3 changed files with 9 additions and 0 deletions
|
@ -80,6 +80,8 @@ class PlaybookInclude(Base, Conditional, Taggable):
|
|||
temp_vars.update(new_obj.vars)
|
||||
entry.vars = temp_vars
|
||||
entry.tags = list(set(entry.tags).union(new_obj.tags))
|
||||
if entry._included_path is None:
|
||||
entry._included_path = os.path.dirname(file_name)
|
||||
|
||||
return pb
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue