redis/tasks/configure-sentinel.yaml

17 lines
365 B
YAML
Raw Normal View History

2021-11-10 09:28:32 +00:00
---
- name: Ensure sentinel config exists
copy:
content: ""
2021-11-10 09:28:32 +00:00
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