mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Merge pull request #12881 from Scypho/devel
fix for issue #11885 - allowing json in lookup template calls
This commit is contained in:
commit
958fb29b78
2 changed files with 6 additions and 1 deletions
|
@ -273,6 +273,10 @@ Here are some examples::
|
|||
|
||||
- debug: msg="{{ lookup('template', './some_template.j2') }} is a value from evaluation of this template"
|
||||
|
||||
# loading a json file from a template as a string
|
||||
- debug: msg="{{ lookup('template', './some_json.json.j2', convert_data=False) }} is a value from evaluation of this template"
|
||||
|
||||
|
||||
- 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue