feat(valkey): add ansible role

This commit is contained in:
2024-11-03 17:28:40 +01:00
parent ccc4f52d56
commit 383a89aef7
13 changed files with 261 additions and 0 deletions

View File

@ -0,0 +1,11 @@
---
- name: Ensure valkey container '{{ valkey_container_name }}' is restarted
community.docker.docker_container:
name: "{{ valkey_container_name }}"
state: "{{ valkey_container_state }}"
restart: true
listen: valkey-restart
when:
- valkey_deployment_method == 'docker'
- valkey_state == 'present'
ignore_errors: "{{ ansible_check_mode }}"