ansible / ansible.builtin / v2.6.20 / lookup / _redis_kv
Removed in 2.9
Reason:This lookup uses options intermingled with terms which blurs the interface between settings and data | Alternative:new 'redis' lookup
fetch data from Redis
| "added in version" 0.9 of ansible.builtin"
Authors: Jan-Piet Mens <jpmens(at)gmail.com>
pip
Install with pip install ansible==2.6.20
this lookup returns a list of items given to it, if any of the top level items is also a list it will flatten it, but it will not recurse
- name: query redis for somekey debug: msg="{{ lookup('redis_kv', 'redis://localhost:6379,somekey') }} is value in Redis for somekey"
_terms: description: Two element comma separated strings composed of url of the Redis server and key to query suboptions: _key: description: key to query required: true _url: default: redis://localhost:6379 description: location of redis host in url format
_raw: description: values stored in Redis