mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
This allows a single template to be evaluated with different values in the same task. For example, with a template like 'x:{{a}}', one could do something like this: - foo: a: "{{ lookup('template', 'x.j2', template_vars=dict(a=foo[item])) }}" b: "{{ lookup('template', 'x.j2', template_vars=dict(a=bar[item])) }}" with_items: - x - y …and "a" and "b" would expand to different strings based on what we passed in to the template lookup. |
||
---|---|---|
.. | ||
action | ||
cache | ||
callback | ||
cliconf | ||
connection | ||
filter | ||
inventory | ||
lookup | ||
netconf | ||
shell | ||
strategy | ||
terminal | ||
test | ||
vars | ||
__init__.py |