ansible / ansible.builtin / v2.4.6.0-1 / lookup / redis_kv fetch data from Redis | "added in version" 0.9 of ansible.builtin" Authors: Jan-Piet Mens <jpmens(at)gmail.com>ansible.builtin.redis_kv (v2.4.6.0-1) — lookup
pip
Install with pip install ansible==2.4.6.0.post1
this looup 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