Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

34 行
1.1 KiB

  1. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  2. # SPDX-FileCopyrightText: 2022 Sebastian Gumprich
  3. # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
  4. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  5. # SPDX-FileCopyrightText: 2024 Suguru Hirahara
  6. #
  7. # SPDX-License-Identifier: AGPL-3.0-or-later
  8. ---
  9. - name: Check existence of matrix-honoroit service
  10. ansible.builtin.stat:
  11. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bot-honoroit.service"
  12. register: matrix_bot_honoroit_service_stat
  13. - when: matrix_bot_honoroit_service_stat.stat.exists | bool
  14. block:
  15. - name: Ensure matrix-honoroit is stopped
  16. ansible.builtin.service:
  17. name: matrix-bot-honoroit
  18. state: stopped
  19. enabled: false
  20. daemon_reload: true
  21. - name: Ensure matrix-bot-honoroit.service doesn't exist
  22. ansible.builtin.file:
  23. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-bot-honoroit.service"
  24. state: absent
  25. - name: Ensure Matrix Honoroit paths don't exist
  26. ansible.builtin.file:
  27. path: "{{ matrix_bot_honoroit_base_path }}"
  28. state: absent