2024-01-03 13:05:59 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-static-files systemd service
|
|
|
|
ansible.builtin.stat:
|
2024-01-09 09:54:00 +02:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrix_static_files_identifier }}.service"
|
2024-01-03 13:05:59 +02:00
|
|
|
register: matrix_static_files_service_stat
|
|
|
|
|
|
|
|
- when: matrix_static_files_service_stat.stat.exists | bool
|
|
|
|
block:
|
|
|
|
- name: Ensure matrix-static-files systemd service is stopped
|
|
|
|
ansible.builtin.service:
|
2024-01-09 09:54:00 +02:00
|
|
|
name: "{{ matrix_static_files_identifier }}"
|
2024-01-03 13:05:59 +02:00
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
|
|
|
|
|
|
|
- name: Ensure matrix-static-files systemd service doesn't exist
|
|
|
|
ansible.builtin.file:
|
2024-01-09 09:54:00 +02:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/{{ matrix_static_files_identifier }}.service"
|
2024-01-03 13:05:59 +02:00
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Ensure matrix-static-files directory is deleted
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ matrix_static_files_base_path }}"
|
|
|
|
state: absent
|