Matrix Docker Ansible eploy
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

26 righe
854 B

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