mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
Merge pull request #91 from varac/fix_crontab_cleanup
Properly respect restic_do_not_cleanup_cron
This commit is contained in:
commit
9cfe610337
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
- name: (SCHEDULE) delete old cron entry from previous versions of this role
|
- name: (SCHEDULE) delete old cron entry from previous versions of this role
|
||||||
ansible.builtin.include_tasks: delete_legacy_cron_entry.yml
|
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
|
- name: (SCHEDULE) install restic via cronjob
|
||||||
ansible.builtin.include_tasks: restic_create_cron.yml
|
ansible.builtin.include_tasks: restic_create_cron.yml
|
||||||
|
@ -30,3 +30,4 @@
|
||||||
- ansible_service_mgr == 'systemd'
|
- ansible_service_mgr == 'systemd'
|
||||||
- not restic_force_cron | default(false)
|
- not restic_force_cron | default(false)
|
||||||
- restic_schedule_type != "cronjob"
|
- restic_schedule_type != "cronjob"
|
||||||
|
- not restic_do_not_cleanup_cron | bool
|
||||||
|
|
Loading…
Reference in a new issue