2022-06-13 05:29:43 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-go-skype-bridge service
|
2022-07-18 16:22:05 +08:00
|
|
|
ansible.builtin.stat:
|
2022-06-13 05:29:43 +08:00
|
|
|
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
|
|
|
|
register: matrix_go_skype_bridge_service_stat
|
|
|
|
|
|
|
|
- name: Ensure matrix-go-skype-bridge is stopped
|
2022-07-18 15:39:08 +08:00
|
|
|
ansible.builtin.service:
|
2022-06-13 05:29:43 +08:00
|
|
|
name: matrix-go-skype-bridge
|
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
|
|
|
when: "matrix_go_skype_bridge_service_stat.stat.exists"
|
|
|
|
|
|
|
|
- name: Ensure matrix-go-skype-bridge.service doesn't exist
|
2022-07-18 15:39:08 +08:00
|
|
|
ansible.builtin.file:
|
2022-06-13 05:29:43 +08:00
|
|
|
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
|
|
|
|
state: absent
|
|
|
|
when: "matrix_go_skype_bridge_service_stat.stat.exists"
|
|
|
|
|
|
|
|
- name: Ensure systemd reloaded after matrix-go-skype-bridge.service removal
|
2022-07-18 15:39:08 +08:00
|
|
|
ansible.builtin.service:
|
2022-06-13 05:29:43 +08:00
|
|
|
daemon_reload: true
|
|
|
|
when: "matrix_go_skype_bridge_service_stat.stat.exists"
|