mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-01-31 04:14:59 +01:00
26 lines
912 B
YAML
26 lines
912 B
YAML
---
|
|
|
|
- name: Check existence of LiveKit JWT Service systemd service
|
|
ansible.builtin.stat:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-livekit-jwt-service.service"
|
|
register: matrix_livekit_jwt_service_service_stat
|
|
|
|
- when: matrix_livekit_jwt_service_service_stat.stat.exists | bool
|
|
block:
|
|
- name: Ensure LiveKit JWT Service systemd service is stopped
|
|
ansible.builtin.service:
|
|
name: matrix-livekit-jwt-service
|
|
state: stopped
|
|
enabled: false
|
|
daemon_reload: true
|
|
|
|
- name: Ensure LiveKit JWT Service systemd service doesn't exist
|
|
ansible.builtin.file:
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-livekit-jwt-service.service"
|
|
state: absent
|
|
|
|
- name: Ensure LiveKit JWT Service paths don't exist
|
|
ansible.builtin.file:
|
|
path: "{{ matrix_livekit_jwt_service_base_path }}"
|
|
state: absent
|