Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

27 строки
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