mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-12-14 21:22:27 +00:00
23 lines
530 B
YAML
23 lines
530 B
YAML
---
|
|
- name: "reload systemd"
|
|
systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: "restart matrix-synapse"
|
|
block:
|
|
- service:
|
|
name: "matrix-synapse"
|
|
state: restarted
|
|
enabled: yes
|
|
when: matrix_synapse_supervision_method == "systemd"
|
|
- docker_container:
|
|
name: synapse
|
|
state: restarted
|
|
when: matrix_synapse_supervision_method == "docker"
|
|
|
|
- name: restart rsyslog
|
|
become: yes
|
|
service:
|
|
name: rsyslog
|
|
state: restarted
|
|
when: matrix_synapse_supervision_method == "systemd"
|