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.
 
 

26 lines
849 B

  1. ---
  2. - name: Check existence of LiveKit Server service
  3. ansible.builtin.stat:
  4. path: "{{ devture_systemd_docker_base_systemd_path }}/{{ livekit_server_identifier }}.service"
  5. register: livekit_server_service_stat
  6. - when: livekit_server_service_stat.stat.exists | bool
  7. block:
  8. - name: Ensure LiveKit Server is stopped
  9. ansible.builtin.service:
  10. name: "{{ livekit_server_identifier }}"
  11. state: stopped
  12. enabled: false
  13. daemon_reload: true
  14. - name: Ensure LiveKit Server systemd service doesn't exist
  15. ansible.builtin.file:
  16. path: "{{ devture_systemd_docker_base_systemd_path }}/{{ livekit_server_identifier }}.service"
  17. state: absent
  18. - name: Ensure LiveKit Server paths don't exist
  19. ansible.builtin.file:
  20. path: "{{ livekit_server_base_path }}"
  21. state: absent