feat(redis): add ansible role

This commit is contained in:
2024-10-30 12:21:51 +01:00
parent 6cec7a4e8e
commit 58b2c625a2
12 changed files with 287 additions and 0 deletions

View File

@ -0,0 +1,11 @@
---
- 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 }}"