ansible/roles/redis/handlers/main.yml
genofire 0a6b680cda Write a role to setup a Redis instance.
The role expects two parameters:

  * `redis_instance`: the instance name
  * `redis_client_group`: the group allowed to access the instance's unix socket

Fixes #17
Updates #10
2020-10-24 14:07:10 +02:00

11 lines
321 B
YAML

---
- name: Reload s6-rc
service:
name: s6-rc
state: reloaded
- name: 'Restart redis-{{ redis_instance }}'
command: s6-svc -wR -T 15000 -ru /run/service/redis-{{ redis_instance }}
- name: 'Restart redis-{{ redis_instance }} log'
command: s6-svc -wR -T 5000 -ru /run/service/redis-{{ redis_instance }}-log