You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
839 B
26 lines
839 B
2 years ago
|
---
|
||
|
|
||
|
- name: Check existence of matrix-go-skype-bridge service
|
||
2 years ago
|
ansible.builtin.stat:
|
||
2 years ago
|
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
|
||
|
register: matrix_go_skype_bridge_service_stat
|
||
|
|
||
|
- name: Ensure matrix-go-skype-bridge is stopped
|
||
2 years ago
|
ansible.builtin.service:
|
||
2 years ago
|
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
|
||
2 years ago
|
ansible.builtin.file:
|
||
2 years ago
|
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
|
||
2 years ago
|
ansible.builtin.service:
|
||
2 years ago
|
daemon_reload: true
|
||
|
when: "matrix_go_skype_bridge_service_stat.stat.exists"
|