add roles
This commit is contained in:
parent
f234c3b08f
commit
b8296f4bee
56 changed files with 1157 additions and 4 deletions
27
roles/synapse/handlers/main.yml
Normal file
27
roles/synapse/handlers/main.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
- name: "reload systemd"
|
||||
systemd:
|
||||
daemon_reload: yes
|
||||
|
||||
- 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:
|
||||
name: synapse
|
||||
state: started
|
||||
restart: yes
|
||||
when: matrix_synapse_supervision_method == "docker"
|
||||
listen: "restart matrix-synapse"
|
||||
|
||||
- name: restart rsyslog
|
||||
become: yes
|
||||
service:
|
||||
name: rsyslog
|
||||
state: restarted
|
||||
when: matrix_synapse_supervision_method == "systemd"
|
||||
Loading…
Add table
Add a link
Reference in a new issue