mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Do not cache the loop item label so that it will update with each item
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user