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 rivejä
768 B

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