From d1f76939e566597a00b141a959a1f5a354a69358 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 20 Feb 2018 07:43:19 -0500 Subject: [PATCH] Do not cache the loop item label so that it will update with each item --- lib/ansible/executor/task_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/executor/task_executor.py b/lib/ansible/executor/task_executor.py index 2e9ffa4e45..734254a305 100644 --- a/lib/ansible/executor/task_executor.py +++ b/lib/ansible/executor/task_executor.py @@ -332,7 +332,7 @@ class TaskExecutor: res['_ansible_ignore_errors'] = task_fields.get('ignore_errors') if label is not None: - res['_ansible_item_label'] = templar.template(label) + res['_ansible_item_label'] = templar.template(label, cache=False) self._rslt_q.put( TaskResult(