Removed in Ansible: | |
---|---|
version: | |
Why: | This lookup uses options intermingled with terms which blurs the interface between settings and data |
Alternative: | new ‘redis’ lookup |
The below requirements are needed on the local master node that executes this lookup.
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
_terms | Two element comma separated strings composed of url of the Redis server and key to query |
- name: query redis for somekey debug: msg="{{ lookup('redis_kv', 'redis://localhost:6379,somekey') }} is value in Redis for somekey"
Common return values are documented here, the following are the fields unique to this lookup:
Key | Returned | Description |
---|---|---|
_raw | values stored in Redis |
This lookup is flagged as deprecated and will be removed in version . For more information see DEPRECATED.
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/plugins/lookup/redis_kv.html