mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2024-12-21 19:09:37 +01:00
Don't specify full path in cron (#67)
This commit is contained in:
parent
c94da43a80
commit
995c866c22
@ -94,7 +94,7 @@
|
||||
minute: "{{ borgmatic_cron_minute }}"
|
||||
user: "root"
|
||||
cron_file: "{{ borgmatic_cron_name }}"
|
||||
job: "/usr/local/bin/borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} --create --prune"
|
||||
job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} --create --prune"
|
||||
- name: Add cron job for infrequent checks
|
||||
cron:
|
||||
name: "{{ borgmatic_cron_name }}-check"
|
||||
@ -103,7 +103,7 @@
|
||||
minute: "{{ borgmatic_cron_checks_minute }}"
|
||||
user: "root"
|
||||
cron_file: "{{ borgmatic_cron_name }}"
|
||||
job: "/usr/local/bin/borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} --check"
|
||||
job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} --check"
|
||||
when: borgmatic_large_repo
|
||||
|
||||
- name: Add cron-job for borgmatic (normal-sized repo)
|
||||
@ -115,7 +115,7 @@
|
||||
minute: "{{ borgmatic_cron_minute }}"
|
||||
user: "root"
|
||||
cron_file: "{{ borgmatic_cron_name }}"
|
||||
job: "/usr/local/bin/borgmatic"
|
||||
job: "borgmatic"
|
||||
- name: Ensure separate check cron job is absent
|
||||
cron:
|
||||
name: "{{ borgmatic_cron_name }}-check"
|
||||
|
Loading…
Reference in New Issue
Block a user