mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update playbooks_lookups.rst
Edited.
This commit is contained in:
parent
f9f99ddfbc
commit
745219d200
1 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ in Ansible, and are typically used to load variables or templates with informati
|
|||
|
||||
.. note:: Since 1.9 you can pass wantlist=True to lookups to use in jinja2 template "for" loops.
|
||||
|
||||
.. warning:: Some lookups pass arguments to a shell, if using variables from a remote/untrusted source use the `|quote` filter to ensure safe usage.
|
||||
.. warning:: Some lookups pass arguments to a shell. When using variables from a remote/untrusted source, use the `|quote` filter to ensure safe usage.
|
||||
|
||||
.. contents:: Topics
|
||||
|
||||
|
@ -530,8 +530,8 @@ Here are some examples::
|
|||
- "{{list2}}"
|
||||
- [1,2,3,4,5,6]
|
||||
|
||||
As an alternative you can also assign lookup plugins to variables or use them elsewhere.
|
||||
This macros are evaluated each time they are used in a task (or template)::
|
||||
As an alternative, you can also assign lookup plugins to variables or use them elsewhere.
|
||||
These macros are evaluated each time they are used in a task (or template)::
|
||||
|
||||
vars:
|
||||
motd_value: "{{ lookup('file', '/etc/motd') }}"
|
||||
|
|
Loading…
Reference in a new issue