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.
 
 

24 lines
736 B

  1. # SPDX-FileCopyrightText: 2025 MDAD project contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Check existence of matrix-conduwuit service
  6. ansible.builtin.stat:
  7. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-conduwuit.service"
  8. register: matrix_conduwuit_service_stat
  9. - when: matrix_conduwuit_service_stat.stat.exists | bool
  10. block:
  11. - name: Ensure matrix-conduwuit is stopped
  12. ansible.builtin.systemd:
  13. name: matrix-conduwuit
  14. state: stopped
  15. daemon_reload: true
  16. - name: Ensure matrix-conduwuit.service doesn't exist
  17. ansible.builtin.file:
  18. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-conduwuit.service"
  19. state: absent