--- - 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