feat(redis): add role for redis deployment

This commit is contained in:
2023-09-20 19:30:02 +02:00
parent f72dd239f9
commit 78e4d0a50e
5 changed files with 138 additions and 0 deletions

View File

@ -0,0 +1,11 @@
---
- name: Ensure redis container '{{ redis_container_name }}' is restarted
listen: restart-redis
community.docker.docker_container:
name: "{{ redis_container_image }}"
state: "started"
restart: true
when:
- redis_deployment_method == "docker"
- not redis_container_info.changed