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.

31 lines
1.0 KiB

  1. # SPDX-FileCopyrightText: 2023 Nikita Chernyi
  2. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  3. #
  4. # SPDX-License-Identifier: AGPL-3.0-or-later
  5. ---
  6. - name: Check existence of matrix-client-schildichat.service
  7. ansible.builtin.stat:
  8. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-client-schildichat.service"
  9. register: matrix_client_schildichat_service_stat
  10. - when: matrix_client_schildichat_service_stat.stat.exists | bool
  11. block:
  12. - name: Ensure matrix-client-schildichat is stopped
  13. ansible.builtin.service:
  14. name: matrix-client-schildichat
  15. state: stopped
  16. enabled: false
  17. daemon_reload: true
  18. - name: Ensure matrix-client-schildichat.service doesn't exist
  19. ansible.builtin.file:
  20. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-client-schildichat.service"
  21. state: absent
  22. - name: Ensure SchildiChat Web path doesn't exist
  23. ansible.builtin.file:
  24. path: "{{ matrix_client_schildichat_data_path }}"
  25. state: absent