From 6bed15cfcd8722ec1df3bf3f2333e0e2324b1cc6 Mon Sep 17 00:00:00 2001 From: Varac Date: Tue, 29 Nov 2022 10:12:11 +0100 Subject: [PATCH] Properly respect restic_do_not_cleanup_cron --- tasks/schedule.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/schedule.yml b/tasks/schedule.yml index 185a572..8ad8347 100644 --- a/tasks/schedule.yml +++ b/tasks/schedule.yml @@ -15,7 +15,7 @@ - name: (SCHEDULE) delete old cron entry from previous versions of this role ansible.builtin.include_tasks: delete_legacy_cron_entry.yml - when: restic_do_not_cleanup_cron | bool + when: not restic_do_not_cleanup_cron | bool - name: (SCHEDULE) install restic via cronjob ansible.builtin.include_tasks: restic_create_cron.yml @@ -30,3 +30,4 @@ - ansible_service_mgr == 'systemd' - not restic_force_cron | default(false) - restic_schedule_type != "cronjob" + - not restic_do_not_cleanup_cron | bool