2021-11-10 09:28:32 +00:00
|
|
|
---
|
2021-11-16 10:42:55 +00:00
|
|
|
- name: Include redis master discover
|
|
|
|
include: discover_master.yaml
|
|
|
|
|
|
|
|
#- debug:
|
|
|
|
# msg: "{{ redis_master_ip }}"
|
2021-11-10 09:28:32 +00:00
|
|
|
|
|
|
|
- name: Include redis installation tasks
|
|
|
|
include: "{{ ansible_os_family }}/install.yaml"
|
|
|
|
|
|
|
|
- name: Configure redis
|
|
|
|
include: configure.yaml
|
|
|
|
|
|
|
|
- name: Start redis server
|
|
|
|
service:
|
|
|
|
name: redis-server
|
|
|
|
enabled: True
|
|
|
|
state: started
|
|
|
|
masked: no
|
2021-11-16 10:42:55 +00:00
|
|
|
register: start_redis
|
2021-11-10 09:28:32 +00:00
|
|
|
|
|
|
|
- name: Configure redis-sentinel
|
|
|
|
include: configure-sentinel.yaml
|
|
|
|
|
|
|
|
- name: Start redis-sentinel
|
|
|
|
service:
|
|
|
|
name: redis-sentinel
|
|
|
|
enabled: True
|
|
|
|
state: started
|
|
|
|
masked: no
|
2021-11-16 10:42:55 +00:00
|
|
|
register: start_redis_sentinel
|
|
|
|
|
|
|
|
- name: Fix redis-sentinel config
|
|
|
|
include: configure-sentinel.yaml
|
|
|
|
|