Update vars for loop_control on each loop iteration (fixes #38899) (#39818)

pull/39836/head
Andrew Gaffney 7 years ago committed by Matt Martz
parent 72ebd1bf46
commit 01e8139d74

@ -302,6 +302,9 @@ class TaskExecutor:
if index_var:
task_vars[index_var] = item_index
# Update template vars to reflect current loop iteration
templar.set_available_variables(task_vars)
# pause between loop iterations
if loop_pause and ran_once:
try:

Loading…
Cancel
Save