2021-05-12 14:24:39 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-heisenbridge service
|
|
|
|
stat:
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-heisenbridge.service"
|
|
|
|
register: matrix_heisenbridge_service_stat
|
|
|
|
|
|
|
|
- name: Ensure matrix-heisenbridge is stopped
|
|
|
|
service:
|
2021-06-29 12:15:03 +02:00
|
|
|
name: matrix-heisenbridge
|
2021-05-12 14:24:39 +02:00
|
|
|
state: stopped
|
2021-11-10 17:39:21 +02:00
|
|
|
enabled: no
|
2021-05-12 14:24:39 +02:00
|
|
|
daemon_reload: yes
|
|
|
|
when: "matrix_heisenbridge_service_stat.stat.exists"
|
|
|
|
|
|
|
|
- name: Ensure matrix-heisenbridge.service doesn't exist
|
|
|
|
file:
|
|
|
|
path: "{{ matrix_systemd_path }}/matrix-heisenbridge.service"
|
|
|
|
state: absent
|
|
|
|
when: "matrix_heisenbridge_service_stat.stat.exists"
|
|
|
|
|
|
|
|
- name: Ensure systemd reloaded after matrix-heisenbridge.service removal
|
|
|
|
service:
|
|
|
|
daemon_reload: yes
|
|
|
|
when: "matrix_heisenbridge_service_stat.stat.exists"
|