mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2025-01-05 22:28:43 +00:00
split handlers block into separate handlers
This commit is contained in:
parent
8f4f26bcb4
commit
f86881ce26
1 changed files with 14 additions and 11 deletions
|
@ -3,17 +3,20 @@
|
||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
|
||||||
- name: "restart matrix-synapse"
|
- name: "restart matrix-synapse using systemd"
|
||||||
block:
|
service:
|
||||||
- service:
|
name: "matrix-synapse"
|
||||||
name: "matrix-synapse"
|
state: restarted
|
||||||
state: restarted
|
enabled: yes
|
||||||
enabled: yes
|
when: matrix_synapse_supervision_method == "systemd"
|
||||||
when: matrix_synapse_supervision_method == "systemd"
|
listen: "restart matrix-synapse"
|
||||||
- docker_container:
|
|
||||||
name: synapse
|
- name: "restart synapse using docker"
|
||||||
state: restarted
|
docker_container:
|
||||||
when: matrix_synapse_supervision_method == "docker"
|
name: synapse
|
||||||
|
state: restarted
|
||||||
|
when: matrix_synapse_supervision_method == "docker"
|
||||||
|
listen: "restart matrix-synapse"
|
||||||
|
|
||||||
- name: restart rsyslog
|
- name: restart rsyslog
|
||||||
become: yes
|
become: yes
|
||||||
|
|
Loading…
Reference in a new issue