From 6576fbc137339bc7293a3aeaa880e62de66f5445 Mon Sep 17 00:00:00 2001 From: nain-F49FF806 <126972030+nain-F49FF806@users.noreply.github.com> Date: Sun, 19 Mar 2023 06:19:47 -0400 Subject: [PATCH] improve task key order (linting suggestion) --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 4b67356..b7bc31d 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -51,6 +51,7 @@ mode: 0600 - name: Add cron-job for borgmatic (large repo, create and check separate) + when: borgmatic_large_repo block: - name: Add cron job for regular create and prune cron: @@ -69,9 +70,9 @@ user: "root" cron_file: "{{ borgmatic_cron_name }}" job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} -k" - when: borgmatic_large_repo - name: Add cron-job for borgmatic (normal-sized repo) + when: not borgmatic_large_repo block: - name: Add cron job for create, check and prune cron: @@ -85,7 +86,6 @@ cron: name: "{{ borgmatic_cron_name }}-check" state: absent - when: not borgmatic_large_repo - name: Set PATH for borgmatic cron job. cron: