2022-08-22 17:10:35 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-postmoogle service
|
|
|
|
ansible.builtin.stat:
|
2024-10-31 08:33:46 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postmoogle.service"
|
|
|
|
register: matrix_postmoogle_service_stat
|
2022-08-22 17:10:35 +00:00
|
|
|
|
2024-10-31 08:33:46 +00:00
|
|
|
- when: matrix_postmoogle_service_stat.stat.exists | bool
|
2022-11-25 15:17:54 +00:00
|
|
|
block:
|
|
|
|
- name: Ensure matrix-postmoogle is stopped
|
|
|
|
ansible.builtin.service:
|
2024-10-31 08:33:46 +00:00
|
|
|
name: matrix-postmoogle
|
2022-11-25 15:17:54 +00:00
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
2022-08-22 17:10:35 +00:00
|
|
|
|
2024-10-31 08:33:46 +00:00
|
|
|
- name: Ensure matrix-postmoogle.service doesn't exist
|
2022-11-25 15:17:54 +00:00
|
|
|
ansible.builtin.file:
|
2024-10-31 08:33:46 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-postmoogle.service"
|
2022-11-25 15:17:54 +00:00
|
|
|
state: absent
|
2022-08-22 17:10:35 +00:00
|
|
|
|
2022-11-25 15:17:54 +00:00
|
|
|
- name: Ensure Matrix postmoogle paths don't exist
|
|
|
|
ansible.builtin.file:
|
2024-10-31 08:33:46 +00:00
|
|
|
path: "{{ matrix_postmoogle_base_path }}"
|
2022-11-25 15:17:54 +00:00
|
|
|
state: absent
|