1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-12 08:43:55 +02:00
matrix-docker-ansible-deploy/roles/custom/matrix-bridge-go-skype-bridge/tasks/setup_uninstall.yml

21 lines
648 B
YAML
Raw Normal View History

---
- name: Check existence of matrix-go-skype-bridge service
2022-07-18 10:22:05 +02:00
ansible.builtin.stat:
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
register: matrix_go_skype_bridge_service_stat
- 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
- name: Ensure matrix-go-skype-bridge.service doesn't exist
ansible.builtin.file:
path: "/etc/systemd/system/matrix-go-skype-bridge.service"
state: absent