2018-07-30 14:56:33 +00:00
|
|
|
---
|
|
|
|
- name: "reload systemd"
|
|
|
|
systemd:
|
|
|
|
daemon_reload: yes
|
|
|
|
|
2019-02-17 22:26:08 +00:00
|
|
|
- name: "restart matrix-synapse using systemd"
|
|
|
|
service:
|
|
|
|
name: "matrix-synapse"
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|
|
|
|
when: matrix_synapse_supervision_method == "systemd"
|
|
|
|
listen: "restart matrix-synapse"
|
|
|
|
|
|
|
|
- name: "restart synapse using docker"
|
|
|
|
docker_container:
|
2020-05-27 16:35:20 +00:00
|
|
|
name: "{{ matrix_synapse_container_name }}"
|
2019-02-17 22:50:22 +00:00
|
|
|
state: started
|
|
|
|
restart: yes
|
2019-02-17 22:26:08 +00:00
|
|
|
when: matrix_synapse_supervision_method == "docker"
|
|
|
|
listen: "restart matrix-synapse"
|
2018-07-30 14:56:33 +00:00
|
|
|
|
2018-08-17 14:22:08 +00:00
|
|
|
- name: restart rsyslog
|
|
|
|
become: yes
|
|
|
|
service:
|
|
|
|
name: rsyslog
|
|
|
|
state: restarted
|
2019-02-16 10:25:57 +00:00
|
|
|
when: matrix_synapse_supervision_method == "systemd"
|