main.yml
417 Bytes
---
# handlers file for redis
- name: stop redis
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: killall -9 nutcracker; /Data/local/twemproxy/sbin/nutcracker -d -c /Data/local/twemproxy/conf/nutcracker.yml