From 560734576203c6906bf2be0dd7f8168e75e3b717 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 18 Jan 2022 18:01:39 +0100 Subject: [PATCH] delete cronjobs when they should be deleted --- tasks/restic_delete_cron.yml | 2 +- vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/restic_delete_cron.yml b/tasks/restic_delete_cron.yml index d8d6095..19e521b 100644 --- a/tasks/restic_delete_cron.yml +++ b/tasks/restic_delete_cron.yml @@ -7,7 +7,7 @@ hour: '{{ item.schedule_hour | default("2") }}' weekday: '{{ item.schedule_weekday | default("*") }}' month: '{{ item.schedule_month | default("*") }}' - state: present + state: absent user: 'root' cron_file: restic_backup become: true diff --git a/vars/main.yml b/vars/main.yml index 2e22da5..31b64ae 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -10,5 +10,5 @@ restic_os_variables: paths: - 'vars' -playbook_version_number: 23 # should be int +playbook_version_number: 24 # should be int playbook_version_path: 'do1jlr.restic.version'