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.
 
 

25 lines
752 B

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