Matrix Docker Ansible eploy
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 line
793 B

  1. # SPDX-FileCopyrightText: 2022 Vladimir Panteleev
  2. # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Check existence of matrix-go-skype-bridge service
  7. ansible.builtin.stat:
  8. path: "/etc/systemd/system/matrix-go-skype-bridge.service"
  9. register: matrix_go_skype_bridge_service_stat
  10. - when: matrix_go_skype_bridge_service_stat.stat.exists | bool
  11. block:
  12. - name: Ensure matrix-go-skype-bridge is stopped
  13. ansible.builtin.service:
  14. name: matrix-go-skype-bridge
  15. state: stopped
  16. enabled: false
  17. daemon_reload: true
  18. - name: Ensure matrix-go-skype-bridge.service doesn't exist
  19. ansible.builtin.file:
  20. path: "/etc/systemd/system/matrix-go-skype-bridge.service"
  21. state: absent