databases/roles/redis/handlers/main.yml

12 lines
361 B
YAML
Raw Permalink 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:
- redis_deployment_method == 'docker'
- redis_state == 'present'
ignore_errors: "{{ ansible_check_mode }}"