Authored by root

redis 重启handlers

... ... @@ -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
... ...
... ... @@ -40,6 +40,7 @@
src: "redis.conf.j2"
dest: "/Data/local/redis/conf/redis.conf"
notify:
- stop redis
- start redis
- name: Make sure autoconf268 utils installed
... ...