From b1413a56452214c542597a4d47c382f348eda5a2 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Fri, 23 Feb 2024 08:47:54 +0200 Subject: [PATCH] Ensure matrix-ssl-lets-encrypt-certificates-renew systemd timer and service are gone We may have had another migration task before, but I cannot find it now. Some people have reported a leftover systemd timer and service, so it's evident that not everyone has gone through that previous migration. --- .../tasks/uninstall_matrix_ssl.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/custom/matrix_playbook_migration/tasks/uninstall_matrix_ssl.yml b/roles/custom/matrix_playbook_migration/tasks/uninstall_matrix_ssl.yml index ebb2c1049..c1c66409b 100644 --- a/roles/custom/matrix_playbook_migration/tasks/uninstall_matrix_ssl.yml +++ b/roles/custom/matrix_playbook_migration/tasks/uninstall_matrix_ssl.yml @@ -4,3 +4,11 @@ ansible.builtin.file: path: "{{ matrix_base_data_path }}/ssl" state: absent + +- name: Ensure matrix-ssl-lets-encrypt-certificates-renew systemd timer and service are gone + ansible.builtin.file: + path: "{{ devture_systemd_docker_base_systemd_path }}/{{ item }}" + state: absent + with_items: + - matrix-ssl-lets-encrypt-certificates-renew.timer + - matrix-ssl-lets-encrypt-certificates-renew.service