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.

27 lines
854 B

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