Use updated task, instead of original, non-merged included_file._task (#39762)
* Used updated task, instead of original, non-merged included_file._task. Fixes #39637 * Add changelog entry
This commit is contained in:
parent
7f5820274f
commit
efff75389d
2 changed files with 2 additions and 1 deletions
|
@ -14,3 +14,4 @@ bugfixes:
|
|||
- dynamic includes - Allow inheriting attributes from static parents (https://github.com/ansible/ansible/pull/38827)
|
||||
- include_role/import_role - improved performance and recursion depth (https://github.com/ansible/ansible/pull/36470)
|
||||
- include_role/import_role - Fix parameter templating (https://github.com/ansible/ansible/pull/36372)
|
||||
- dynamic includes - Use the copied and merged task for calculating task vars (https://github.com/ansible/ansible/pull/39762)
|
||||
|
|
|
@ -363,7 +363,7 @@ class StrategyModule(StrategyBase):
|
|||
for new_block in new_blocks:
|
||||
task_vars = self._variable_manager.get_vars(
|
||||
play=iterator._play,
|
||||
task=included_file._task,
|
||||
task=new_block._parent
|
||||
)
|
||||
display.debug("filtering new block on tags")
|
||||
final_block = new_block.filter_tagged_tasks(play_context, task_vars)
|
||||
|
|
Loading…
Reference in a new issue