From 995c866c22d527b7b736fe2e654d3285771fb061 Mon Sep 17 00:00:00 2001 From: savoiringfaire <45015065+savoiringfaire@users.noreply.github.com> Date: Mon, 21 Jun 2021 18:38:55 +0100 Subject: [PATCH] Don't specify full path in cron (#67) --- tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 92f0b3a..6213950 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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"