ansible-collection-famedly-.../roles/sygnal/handlers/main.yml
2021-10-26 10:59:03 +02:00

20 lines
430 B
YAML

---
- name: "reload systemd"
systemd:
daemon_reload: yes
- name: "restart sygnal using systemd"
service:
name: "sygnal"
state: restarted
enabled: yes
when: sygnal_supervision_method == "systemd"
listen: "restart sygnal"
- name: "restart sygnal using docker"
docker_container:
name: sygnal
state: started
restart: yes
when: sygnal_supervision_method == "docker"
listen: "restart sygnal"