mirror of
https://gitea.0xace.cc/ansible-galaxy/redis.git
synced 2024-11-25 07:57:24 +00:00
36 lines
691 B
YAML
36 lines
691 B
YAML
---
|
|
- name: Include redis master discover
|
|
include: discover_master.yaml
|
|
|
|
#- debug:
|
|
# msg: "{{ redis_master_ip }}"
|
|
|
|
- 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
|
|
|
|
- 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
|
|
|