mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Address memory ballooning caused by task caching changes (#35921)
* Exclude parent when copying included task to avoid memory issues. Fixes #35796 * Simplify implicit block squashing to pre-group, instead of post re-parenting
This commit is contained in:
@@ -763,7 +763,8 @@ class StrategyBase:
|
||||
elif not isinstance(data, list):
|
||||
raise AnsibleError("included task files must contain a list of tasks")
|
||||
|
||||
ti_copy = included_file._task.copy()
|
||||
ti_copy = included_file._task.copy(exclude_parent=True)
|
||||
ti_copy._parent = included_file._task._parent
|
||||
temp_vars = ti_copy.vars.copy()
|
||||
temp_vars.update(included_file._args)
|
||||
# pop tags out of the include args, if they were specified there, and assign
|
||||
|
||||
Reference in New Issue
Block a user