Compare commits

..

1 Commits

Author SHA1 Message Date
16280fef31
feat(redis): add ansible role 2024-10-30 18:16:16 +01:00
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
---
- 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'

View File

@ -0,0 +1,10 @@
---
allow_duplicates: true
dependencies: []
galaxy_info:
role_name: redis
description: >-2
Deploy and configure redis server
galaxy_tags:
- redis
- docker

View File

@ -61,6 +61,7 @@
group: "{{ redis_run_group_id }}"
mode: "0640"
when: redis_state == 'present'
notify: redis-restart
- name: Deploy redis using {{ redis_deployment_method }}
ansible.builtin.include_tasks: