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