mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Make sure playbook includes use unique var dictionaries before modification
This commit is contained in:
parent
5fec11f513
commit
a498876bec
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ class PlaybookInclude(Base, Conditional, Taggable):
|
|||
# finally, update each loaded playbook entry with any variables specified
|
||||
# on the included playbook and/or any tags which may have been set
|
||||
for entry in pb._entries:
|
||||
entry.vars.update(new_obj.vars)
|
||||
temp_vars = entry.vars.copy()
|
||||
temp_vars.update(new_obj.vars)
|
||||
entry.vars = temp_vars
|
||||
entry.tags = list(set(entry.tags).union(new_obj.tags))
|
||||
|
||||
return pb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue