mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-01-31 12:24:55 +01:00
26 lines
849 B
YAML
26 lines
849 B
YAML
---
|
|
|
|
- name: Check existence of LiveKit Server service
|
|
ansible.builtin.stat:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/{{ livekit_server_identifier }}.service"
|
|
register: livekit_server_service_stat
|
|
|
|
- when: livekit_server_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure LiveKit Server is stopped
|
|
ansible.builtin.service:
|
|
name: "{{ livekit_server_identifier }}"
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure LiveKit Server systemd service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/{{ livekit_server_identifier }}.service"
|
|
state: absent
|
|
|
|
- name: Ensure LiveKit Server paths don't exist
|
|
ansible.builtin.file:
|
|
path: "{{ livekit_server_base_path }}"
|
|
state: absent
|