mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Don't pollute include_variables (#54687)
* Don't pollute include_variables. Fixes #51667. Fixes #54618. * Rename include_variables to include_args, so we can make the distinction about what they are * Track args and vars separately * oops * oops again * linting fix * Add test
This commit is contained in:
@@ -762,7 +762,7 @@ class StrategyBase:
|
||||
ti_copy._parent = included_file._task._parent
|
||||
|
||||
temp_vars = ti_copy.vars.copy()
|
||||
temp_vars.update(included_file._args)
|
||||
temp_vars.update(included_file._vars)
|
||||
|
||||
ti_copy.vars = temp_vars
|
||||
|
||||
|
||||
Reference in New Issue
Block a user