...
|
...
|
@@ -2,11 +2,11 @@ |
|
|
# handlers file for redis
|
|
|
|
|
|
- name: stop redis
|
|
|
shell: /Data/local/redis/bin/redis-cli -h "{{ ansible_default_ipv4['address'] }}" -p 6379 shutdown
|
|
|
shell: /Data/local/redis/bin/redis-cli -h "{{ ansible_default_ipv4['address'] }}" -p 16379 shutdown
|
|
|
ignore_errors: True
|
|
|
|
|
|
- name: start redis
|
|
|
shell: /Data/local/redis/bin/redis-server /Data/local/redis/conf/redis.conf
|
|
|
|
|
|
- name: start nutcracker
|
|
|
shell: /Data/local/twemproxy/sbin/nutcracker -d -c /Data/local/twemproxy/conf/nutcracker.yml |
|
|
shell: killall -9 nutcracker; /Data/local/twemproxy/sbin/nutcracker -d -c /Data/local/twemproxy/conf/nutcracker.yml |
...
|
...
|
|