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.
 
 

20 lines
671 B

  1. ---
  2. - name: Check existence of media-repo service
  3. ansible.builtin.stat:
  4. path: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrix_media_repo_identifier }}.service"
  5. register: matrix_media_repo_service_stat
  6. - when: matrix_media_repo_service_stat.stat.exists | bool
  7. block:
  8. - name: Ensure media-repo is stopped
  9. ansible.builtin.systemd:
  10. name: "{{ matrix_media_repo_identifier }}"
  11. state: stopped
  12. daemon_reload: true
  13. - name: Ensure media-repo service doesn't exist
  14. ansible.builtin.file:
  15. path: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrix_media_repo_identifier }}.service"
  16. state: absent