2022-08-21 09:04:47 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Check existence of matrix-matrix_ldap_registration_proxy service
|
|
|
|
ansible.builtin.stat:
|
2022-11-04 14:38:38 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-ldap-registration-proxy.service"
|
2022-09-06 09:01:35 +00:00
|
|
|
register: matrix_ldap_registration_proxy_service_stat
|
2022-08-21 09:04:47 +00:00
|
|
|
|
|
|
|
- name: Ensure matrix-matrix_ldap_registration_proxy is stopped
|
|
|
|
ansible.builtin.service:
|
|
|
|
name: matrix-matrix_ldap_registration_proxy
|
|
|
|
state: stopped
|
|
|
|
enabled: false
|
|
|
|
daemon_reload: true
|
|
|
|
register: stopping_result
|
2022-09-06 09:01:35 +00:00
|
|
|
when: "matrix_ldap_registration_proxy_service_stat.stat.exists | bool"
|
2022-08-21 09:04:47 +00:00
|
|
|
|
|
|
|
- name: Ensure matrix-ldap-registration-proxy.service doesn't exist
|
|
|
|
ansible.builtin.file:
|
2022-11-04 14:38:38 +00:00
|
|
|
path: "{{ devture_systemd_docker_base_systemd_path }}/matrix-ldap-registration-proxy.service"
|
2022-08-21 09:04:47 +00:00
|
|
|
state: absent
|
2022-09-06 09:01:35 +00:00
|
|
|
when: "matrix_ldap_registration_proxy_service_stat.stat.exists | bool"
|
2022-08-21 09:04:47 +00:00
|
|
|
|
|
|
|
- name: Ensure systemd reloaded after matrix-ldap-registration-proxy.service removal
|
|
|
|
ansible.builtin.service:
|
|
|
|
daemon_reload: true
|
2022-09-06 09:01:35 +00:00
|
|
|
when: "matrix_ldap_registration_proxy_service_stat.stat.exists | bool"
|
2022-08-21 09:04:47 +00:00
|
|
|
|
|
|
|
- name: Ensure Matrix matrix_ldap_registration_proxy paths don't exist
|
|
|
|
ansible.builtin.file:
|
2022-09-06 09:01:35 +00:00
|
|
|
path: "{{ matrix_ldap_registration_proxy_base_path }}"
|
2022-08-21 09:04:47 +00:00
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: Ensure matrix_ldap_registration_proxy Docker image doesn't exist
|
2022-10-28 11:20:17 +00:00
|
|
|
community.docker.docker_image:
|
2022-09-06 09:01:35 +00:00
|
|
|
name: "{{ matrix_ldap_registration_proxy_docker_image }}"
|
2022-08-21 09:04:47 +00:00
|
|
|
state: absent
|