Matrix Docker Ansible eploy
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

34 satır
1.1 KiB

  1. # SPDX-FileCopyrightText: 2022 MDAD project contributors
  2. # SPDX-FileCopyrightText: 2022 Marko Weltzer
  3. # SPDX-FileCopyrightText: 2022 Sebastian Gumprich
  4. # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
  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