2022-06-12 23:29:43 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-go-skype-bridge service
|
2022-07-18 10:22:05 +02:00
|
|
|
ansible.builtin.stat:
|
2022-06-12 23:29:43 +02:00
|
|
|
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
|
|
|
|
register: matrix_go_skype_bridge_service_stat
|
|
|
|
|
2022-11-25 17:17:54 +02:00
|
|
|
- when: matrix_go_skype_bridge_service_stat.stat.exists | bool
|
|
|
|
block:
|
|
|
|
- name: Ensure matrix-go-skype-bridge is stopped
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: matrix-go-skype-bridge
|
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
2022-06-12 23:29:43 +02:00
|
|
|
|
2022-11-25 17:17:54 +02:00
|
|
|
- name: Ensure matrix-go-skype-bridge.service doesn't exist
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
|
|
|
|
state: absent
|