mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add one line example for looking up through etcd
This commit is contained in:
parent
32309e37ce
commit
48ee191379
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ Here are some examples::
|
|||
|
||||
- debug: msg="{{ lookup('template', './some_template.j2') }} is a value from evaluation of this template"
|
||||
|
||||
- debug: msg="{{ lookup('etcd', 'foo') }} is a value from a locally running etcd"
|
||||
|
||||
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)::
|
||||
|
|
Loading…
Reference in a new issue