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
943 B

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