matrix/roles/synapse/handlers/main.yml

17 lines
482 B
YAML
Raw Permalink Normal View History

2024-09-20 12:15:55 +00:00
---
- name: Ensure synapse is restarted
listen: synapse-restart
community.docker.docker_container:
name: "{{ synapse_container_name }}"
state: started
restart: true
when: synapse_deployment_method == 'docker'
- name: Ensure synapse is restarted
listen: synapse-restart
containers.podman.podman_container:
name: "{{ synapse_container_name }}"
state: "{{ synapse_container_state }}"
force_restart: true
when: synapse_deployment_method == 'podman'