From 9794f0ac97c87f0cd0f966f37b57e47f998961d7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 17 Aug 2020 21:31:59 +0200 Subject: [PATCH] Work around Duplicity bug overwriting backup job Now it overwrites the log cleanup which is okay-ish but at least the backup is working again. refs ansible/ansible#71244 ansible/ansible#71207 Signed-off-by: Knut Ahlers --- tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index f1a19f9..df69581 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,14 +37,6 @@ src: duplicity-backup.yaml.j2 dest: /etc/duplicity-backup.yaml -- name: Set up cron for backups - cron: - name: Duplicity Backup - special_time: hourly - job: /usr/bin/ionice -c3 /usr/bin/nice -n19 /usr/local/bin/duplicity-backup -f /etc/duplicity-backup.yaml backup - user: root - cron_file: duplicity - - name: Add cronjob to clean logs cron: name: Cleanup logs @@ -53,6 +45,14 @@ cron_file: duplicity user: root +- name: Set up cron for backups + cron: + name: Duplicity Backup + special_time: hourly + job: /usr/bin/ionice -c3 /usr/bin/nice -n19 /usr/local/bin/duplicity-backup -f /etc/duplicity-backup.yaml backup + user: root + cron_file: duplicity + - name: Ensure .config directory used by duplicity file: dest: /root/.config