Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

26 řádky
806 B

  1. # SPDX-FileCopyrightText: 2022 Charles Wright
  2. # SPDX-FileCopyrightText: 2022 Sebastian Gumprich
  3. # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
  4. #
  5. # SPDX-License-Identifier: AGPL-3.0-or-later
  6. ---
  7. - name: Check existence of matrix-conduit service
  8. ansible.builtin.stat:
  9. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-conduit.service"
  10. register: matrix_conduit_service_stat
  11. - when: matrix_conduit_service_stat.stat.exists | bool
  12. block:
  13. - name: Ensure matrix-conduit is stopped
  14. ansible.builtin.systemd:
  15. name: matrix-conduit
  16. state: stopped
  17. daemon_reload: true
  18. - name: Ensure matrix-conduit.service doesn't exist
  19. ansible.builtin.file:
  20. path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-conduit.service"
  21. state: absent