redis/tasks/redis.yaml

36 lines
691 B
YAML
Raw Normal View History

2021-11-10 09:28:32 +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
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
register: start_redis_sentinel
- name: Fix redis-sentinel config
include: configure-sentinel.yaml