??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`sºddlmZmZmZeZdZdZdZddl Z e Z yddl Z e Z Wnek ronXddlmZddlmZddlmZd efd „ƒYZdS( i(tabsolute_importtdivisiontprint_functions‹ lookup: redis author: - Jan-Piet Mens (@jpmens) - Ansible Core version_added: "2.5" short_description: fetch data from Redis description: - This lookup returns a list of results from a Redis DB corresponding to a list of items given to it requirements: - redis (python library https://github.com/andymccurdy/redis-py/) options: _terms: description: list of keys to query host: description: location of Redis host default: '127.0.0.1' env: - name: ANSIBLE_REDIS_HOST ini: - section: lookup_redis key: host port: description: port on which Redis is listening on default: 6379 type: int env: - name: ANSIBLE_REDIS_PORT ini: - section: lookup_redis key: port socket: description: path to socket on which to query Redis, this option overrides host and port options when set. type: path env: - name: ANSIBLE_REDIS_SOCKET ini: - section: lookup_redis key: socket s - name: query redis for somekey (default or configured settings used) debug: msg="{{ lookup('redis', 'somekey') }}" - name: query redis for list of keys and non-default host and port debug: msg="{{ lookup('redis', item, host='myredis.internal.com', port=2121) }}" loop: '{{list_of_redis_keys}}' - name: use list directly debug: msg="{{ lookup('redis', 'key1', 'key2', 'key3') }}" - name: use list directly with a socket debug: msg="{{ lookup('redis', 'key1', 'key2', socket='/var/tmp/redis.sock') }}" s/ _raw: description: value(s) stored in Redis N(tto_text(t AnsibleError(t LookupBaset LookupModulecB`seZd„ZRS(c K`ststdƒ‚n|jd|ƒ|jdƒ}|jdƒ}|jdƒ}|dkrytjd|d|ƒ}ntjd|ƒ}g}xw|D]o} y;|j| ƒ} | dkrÅd} n|jt | ƒƒWq˜t k r} tdj | | ƒƒ‚q˜Xq˜W|S( Ns5Can't LOOKUP(redis_kv): module redis is not installedtdirectthosttporttsockettunix_socket_pathts-Encountered exception while fetching {0}: {1}( t HAVE_REDISRt set_optionst get_optiontNonetredistRedistgettappendRt Exceptiontformat( tselfttermst variablestkwargsRR R tconntretttermtreste((s@/usr/lib/python2.7/site-packages/ansible/plugins/lookup/redis.pytrunUs&     (t__name__t __module__R (((s@/usr/lib/python2.7/site-packages/ansible/plugins/lookup/redis.pyRSs(t __future__RRRttypet __metaclass__t DOCUMENTATIONtEXAMPLEStRETURNtostFalseR RtTruet ImportErrortansible.module_utils._textRtansible.errorsRtansible.plugins.lookupRR(((s@/usr/lib/python2.7/site-packages/ansible/plugins/lookup/redis.pyts)