mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 15:21:25 -07:00
Templar: encapsulate _available_variables (#55435)
Ensure variables are reset between iterations
This commit is contained in:
parent
bd061fd632
commit
34e9d6781b
14 changed files with 47 additions and 30 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue