databases/roles/valkey/handlers/main.yml

12 lines
368 B
YAML
Raw Permalink Normal View History

2024-11-03 16:28:40 +00:00
---
- 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 }}"