Skip to content

Commit 9cfe610

Browse files
authored
Merge pull request #91 from varac/fix_crontab_cleanup
Properly respect restic_do_not_cleanup_cron
2 parents dfef3cc + 6bed15c commit 9cfe610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/schedule.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
- name: (SCHEDULE) delete old cron entry from previous versions of this role
1717
ansible.builtin.include_tasks: delete_legacy_cron_entry.yml
18-
when: restic_do_not_cleanup_cron | bool
18+
when: not restic_do_not_cleanup_cron | bool
1919

2020
- name: (SCHEDULE) install restic via cronjob
2121
ansible.builtin.include_tasks: restic_create_cron.yml
@@ -30,3 +30,4 @@
3030
- ansible_service_mgr == 'systemd'
3131
- not restic_force_cron | default(false)
3232
- restic_schedule_type != "cronjob"
33+
- not restic_do_not_cleanup_cron | bool

0 commit comments

Comments
 (0)