mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07: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:
parent
e36b4e2a13
commit
0c360d17cb
2 changed files with 9 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue