mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update lookups doc with shelvefile example
This commit is contained in:
parent
f40b66d841
commit
8288e27051
1 changed files with 3 additions and 0 deletions
|
@ -175,6 +175,9 @@ Here are some examples::
|
||||||
|
|
||||||
- debug: msg="{{ lookup('etcd', 'foo') }} is a value from a locally running etcd"
|
- debug: msg="{{ lookup('etcd', 'foo') }} is a value from a locally running etcd"
|
||||||
|
|
||||||
|
# shelvefile lookup retrieves a string value corresponding to a key inside a Python shelve file
|
||||||
|
- debug: msg="{{ lookup('shelvefile', 'file=path_to_some_shelve_file.db key=key_to_retrieve') }}
|
||||||
|
|
||||||
# The following lookups were added in 1.9
|
# The following lookups were added in 1.9
|
||||||
- debug: msg="{{item}}"
|
- debug: msg="{{item}}"
|
||||||
with_url:
|
with_url:
|
||||||
|
|
Loading…
Reference in a new issue