mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
This commit is contained in:
parent
72ebd1bf46
commit
01e8139d74
1 changed files with 3 additions and 0 deletions
|
@ -302,6 +302,9 @@ class TaskExecutor:
|
||||||
if index_var:
|
if index_var:
|
||||||
task_vars[index_var] = item_index
|
task_vars[index_var] = item_index
|
||||||
|
|
||||||
|
# Update template vars to reflect current loop iteration
|
||||||
|
templar.set_available_variables(task_vars)
|
||||||
|
|
||||||
# pause between loop iterations
|
# pause between loop iterations
|
||||||
if loop_pause and ran_once:
|
if loop_pause and ran_once:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue