databases/roles/redis/handlers/main.yml

11 lines
311 B
YAML
Raw Normal View History

2024-10-30 11:21:51 +00:00
---
- name: Ensure redis container '{{ redis_container_name }}' is restarted
community.docker.docker_container:
name: "{{ redis_container_name }}"
state: "{{ redis_container_state }}"
restart: true
listen: redis-restart
when:
- deployment_method == 'docker'
- redis_state == 'present'