mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Re-use logic from StrategyBase._load_included_file in StrategyModule.run for free and linear (#36470)
This improves include_role performance and recursion limits
This commit is contained in:
@@ -324,8 +324,7 @@ class StrategyModule(StrategyBase):
|
||||
# list of noop tasks, to make sure that they continue running in lock-step
|
||||
try:
|
||||
if included_file._is_role:
|
||||
new_ir = included_file._task.copy()
|
||||
new_ir.vars.update(included_file._args)
|
||||
new_ir = self._copy_included_file(included_file)
|
||||
|
||||
new_blocks, handler_blocks = new_ir.get_block_list(
|
||||
play=iterator._play,
|
||||
|
||||
Reference in New Issue
Block a user