mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
New parameter for template method.
We do not compute hash when we know that the result does not need to be cached (like with_items loop). It also result in a small speed improvement.
This commit is contained in:
@@ -256,7 +256,7 @@ class TaskExecutor:
|
||||
variables['item'] = item
|
||||
if self._task.evaluate_conditional(templar, variables):
|
||||
if templar._contains_vars(name):
|
||||
new_item = templar.template(name)
|
||||
new_item = templar.template(name, cache=False)
|
||||
final_items.append(new_item)
|
||||
else:
|
||||
final_items.append(item)
|
||||
|
||||
Reference in New Issue
Block a user