mirror of
https://gitea.0xace.cc/ansible-galaxy/redis.git
synced 2024-11-25 07:57:24 +00:00
17 lines
365 B
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
|