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 lines
1.0 KiB

  1. # SPDX-FileCopyrightText: 2024 - 2025 Slavi Pantaleev
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Check existence of matrix-authentication-service service
  6. ansible.builtin.stat:
  7. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-authentication-service.service"
  8. register: matrix_authentication_service_service_stat
  9. - when: matrix_authentication_service_service_stat.stat.exists | bool
  10. block:
  11. - name: Ensure matrix-authentication-service is stopped
  12. ansible.builtin.service:
  13. name: matrix-authentication-service
  14. state: stopped
  15. enabled: false
  16. daemon_reload: true
  17. - name: Ensure matrix-authentication-service.service doesn't exist
  18. ansible.builtin.file:
  19. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-authentication-service.service"
  20. state: absent
  21. - name: Ensure Matrix Authentication Service paths don't exist
  22. ansible.builtin.file:
  23. path: "{{ matrix_authentication_service_base_path }}"
  24. state: absent