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.
 
 

30 regels
1.0 KiB

  1. # SPDX-FileCopyrightText: 2023 - 2024 MDAD project contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Check existence of matrix-appservice-draupnir-for-all service
  6. ansible.builtin.stat:
  7. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-appservice-draupnir-for-all.service"
  8. register: matrix_bot_draupnir_service_stat
  9. - when: matrix_bot_draupnir_service_stat.stat.exists | bool
  10. block:
  11. - name: Ensure matrix-appservice-draupnir-for-all is stopped
  12. ansible.builtin.service:
  13. name: matrix-appservice-draupnir-for-all
  14. state: stopped
  15. enabled: false
  16. daemon_reload: true
  17. - name: Ensure matrix-appservice-draupnir-for-all.service doesn't exist
  18. ansible.builtin.file:
  19. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-appservice-draupnir-for-all.service"
  20. state: absent
  21. - name: Ensure matrix-appservice-draupnir-for-all paths don't exist
  22. ansible.builtin.file:
  23. path: "{{ matrix_bot_draupnir_base_path }}"
  24. state: absent