??????????????
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@`sddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z d Z ydd l Z Wn#e k r“e jƒZ eZnXeZdd lmZmZdd lmZd „Zd„Zd d„Zd„Zedkrύeƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys4 --- module: redis short_description: Various redis commands, slave and flush description: - Unified utility to interact with redis instances. version_added: "1.3" options: command: description: - The selected redis command - C(config) (new in 1.6), ensures a configuration setting on an instance. - C(flush) flushes all the instance or a specified db. - C(slave) sets a redis instance in slave or master mode. required: true choices: [ config, flush, slave ] login_password: description: - The password used to authenticate with (usually not used) login_host: description: - The host running the database default: localhost login_port: description: - The port to connect to default: 6379 master_host: description: - The host of the master instance [slave command] master_port: description: - The port of the master instance [slave command] slave_mode: description: - the mode of the redis instance [slave command] default: slave choices: [ master, slave ] db: description: - The database to flush (used in db mode) [flush command] flush_mode: description: - Type of flush (all the dbs in a redis instance or a specific one) [flush command] default: all choices: [ all, db ] name: description: - A redis config key. version_added: 1.6 value: description: - A redis config value. version_added: 1.6 notes: - Requires the redis-py Python package on the remote host. You can install it with pip (pip install redis) or with a package manager. https://github.com/andymccurdy/redis-py - If the redis master instance we are making slave of is password protected this needs to be in the redis.conf in the masterauth variable requirements: [ redis ] author: "Xabier Larrakoetxea (@slok)" s¦ - name: Set local redis instance to be slave of melee.island on port 6377 redis: command: slave master_host: melee.island master_port: 6377 - name: Deactivate slave mode redis: command: slave slave_mode: master - name: Flush all the redis db redis: command: flush flush_mode: all - name: Flush only one db in a redis instance redis: command: flush db: 1 flush_mode: db - name: Configure local redis to have 10000 max clients redis: command: config name: maxclients value: 10000 - name: Configure local redis to have lua time limit of 100 ms redis: command: config name: lua-time-limit value: 100 N(t AnsibleModuletmissing_required_lib(t to_nativecC`s-y|j||ƒSWntk r(tSXdS(N(tslaveoft ExceptiontFalse(tclientt master_hostt master_port((sG/usr/lib/python2.7/site-packages/ansible/modules/database/misc/redis.pytset_slave_mode†s cC`s'y|jƒSWntk r"tSXdS(N(R R R (R((sG/usr/lib/python2.7/site-packages/ansible/modules/database/misc/redis.pytset_master_modes cC`s@y't|tƒs|jƒS|jƒSWntk r;tSXdS(N(t isinstancetinttflushalltflushdbR R (Rtdb((sG/usr/lib/python2.7/site-packages/ansible/modules/database/misc/redis.pytflush”s   cC`sŸtdtdtddddddgƒd tddd tƒd tddd d ƒdtddd dƒdtddƒdtddƒdtddd ddddgƒdtddƒdtddd ddddgƒdtddƒdtddƒƒ dtƒ}ts'|jdtdƒdtƒn|jd }|jd }|jd}|jd}|dkr£|jd}|jd}|jd}|dkrΟ|s³|jddƒn|sΟ|jddƒqΟntj d |d!|d"|ƒ}y|j ƒWn9t k r6} |jdd#t | ƒdt jƒƒnX|jƒ} |dkrx| d$dkrx|jd%td&|ƒq›|dkrθ| d$dkrθ| d|krθ| d|krθtd'|d|d|ƒ} |jd%td&| ƒq›|dkrb|jst|||ƒrO|jƒ} i|d'6|d6|d6} |jd%td&| ƒq |jdd(ƒq›|jswt|ƒr|jd%td&|ƒq›|jdd)ƒnψ|dkr|jd} |jd}|dkrχ| dkrχ|jdd*ƒqχntj d |d!|d"|d| ƒ}y|j ƒWn9t k rd} |jdd#t | ƒdt jƒƒnX|dkr²|js†t|ƒrŸ|jd%td+tƒqύ|jdd,ƒq›|jsΚt|| ƒrι|jd%td+td| ƒq›|jdd-| ƒn›|dkr‹|jd} |jd}tj d |d!|d"|ƒ}y|j ƒWn9t k r} |jdd#t | ƒdt jƒƒnXy|j| ƒ| }Wn9t k rΰ} |jdd.t | ƒdt jƒƒnX||k}|jsύ| r|jd%|d| d|ƒq›y|j| |ƒWn9t k rk} |jdd/t | ƒdt jƒƒnX|jd%|d| d|ƒn|jdd0ƒdS(1Nt argument_spectcommandttypetstrtchoicestconfigRtslavetlogin_passwordtno_logt login_hosttdefaultt localhostt login_portRiλRRt slave_modetmasterRt flush_modetalltnametvaluetsupports_check_modetmsgtredist exceptions*In slave mode master host must be provideds*In slave mode master port must be providedthosttporttpasswords!unable to connect to database: %stroletchangedtmodeRsUnable to set slave modesUnable to set master modes)In db mode the db number must be providedtflushedsUnable to flush all databasessUnable to flush '%d' databasesunable to read config: %ssunable to write config: %ss A valid command must be provided(RtdicttTruet redis_foundt fail_jsonR t REDIS_IMP_ERRtparamsR.t StrictRedistpingR R t tracebackt format_exctinfot exit_jsonR t check_modeRRtNoneRt config_gett config_set(tmoduleR R"R%RRRR5trteRARRR*R+t old_valueR4((sG/usr/lib/python2.7/site-packages/ansible/modules/database/misc/redis.pytmain sΎ!!          * <          $*    ** *t__main__(t __future__RRRRt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESR?RDR;R.t ImportErrorR@R R9R8tansible.module_utils.basicRR tansible.module_utils._textR RRRRKt__name__(((sG/usr/lib/python2.7/site-packages/ansible/modules/database/misc/redis.pyts,   D$       Ž