mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Templar: encapsulate _available_variables (#55435)
Ensure variables are reset between iterations
This commit is contained in:
committed by
Brian Coca
parent
bd061fd632
commit
34e9d6781b
@@ -345,7 +345,7 @@ class TaskExecutor:
|
||||
task_vars['ansible_loop']['previtem'] = items[item_index - 1]
|
||||
|
||||
# Update template vars to reflect current loop iteration
|
||||
templar.set_available_variables(task_vars)
|
||||
templar.available_variables = task_vars
|
||||
|
||||
# pause between loop iterations
|
||||
if loop_pause and ran_once:
|
||||
|
||||
Reference in New Issue
Block a user