From a51854f48cd22a336392fa2b7097cbe3a06211b3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 20 Nov 2022 22:52:00 +0000 Subject: [PATCH] Shuffle around cron jobs to run earlier at night --- ansible/host_vars/pve/main.yml | 2 +- ansible/roles/docker_cleanup/tasks/main.yml | 2 +- ansible/roles/restic/tasks/main.yml | 4 ++-- ansible/roles/zfs/tasks/main.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/host_vars/pve/main.yml b/ansible/host_vars/pve/main.yml index 1ad6500..64478f1 100644 --- a/ansible/host_vars/pve/main.yml +++ b/ansible/host_vars/pve/main.yml @@ -59,7 +59,7 @@ snapraid_config_excludes: - /tmp/ snapraid_scrub_schedule: - hour: 5 + hour: 2 weekday: 4 snapraid_scrub_healthcheck_io_uuid: "{{ vault_snapraid_scrub_healthcheck_io_uuid }}" diff --git a/ansible/roles/docker_cleanup/tasks/main.yml b/ansible/roles/docker_cleanup/tasks/main.yml index 11e7fba..581fb06 100644 --- a/ansible/roles/docker_cleanup/tasks/main.yml +++ b/ansible/roles/docker_cleanup/tasks/main.yml @@ -36,7 +36,7 @@ - name: Clean up docker containers cron: name: clean up docker containers - hour: 23 + hour: 1 minute: 0 job: docker system prune -af --volumes diff --git a/ansible/roles/restic/tasks/main.yml b/ansible/roles/restic/tasks/main.yml index d5bed99..1cc2ecc 100644 --- a/ansible/roles/restic/tasks/main.yml +++ b/ansible/roles/restic/tasks/main.yml @@ -51,7 +51,7 @@ - name: Schedule backup cron: name: restic backup - hour: 2 + hour: 0 minute: 0 job: /home/restic/backrest.sh cron_backup user: restic @@ -60,7 +60,7 @@ - name: Schedule forget cron: name: restic forget - hour: 5 + hour: 2 minute: 0 weekday: 0 job: /home/restic/backrest.sh cron_forget diff --git a/ansible/roles/zfs/tasks/main.yml b/ansible/roles/zfs/tasks/main.yml index dfde141..334724f 100644 --- a/ansible/roles/zfs/tasks/main.yml +++ b/ansible/roles/zfs/tasks/main.yml @@ -8,7 +8,7 @@ - name: ZFS Scrub cron: name: scrub {{ item }} ZFS pool - hour: 5 + hour: 2 minute: 0 weekday: 5 job: zpool scrub {{ item }}