redis/tasks/configure-sentinel.yaml

17 lines
365 B
YAML

---
- name: Ensure sentinel config exists
copy:
content: ""
dest: "/etc/redis/sentinel.conf"
force: no
owner: redis
group: redis
mode: 0640
- name: Template redis-sentinel config
blockinfile:
block: "{{ lookup('template', 'etc/redis/sentinel.conf.j2') }}"
path: "/etc/redis/sentinel.conf"
notify:
- Restart redis-sentinel