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 <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-08-17 21:31:59 +02:00
parent f1fcc82c47
commit 9794f0ac97
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -37,14 +37,6 @@
src: duplicity-backup.yaml.j2 src: duplicity-backup.yaml.j2
dest: /etc/duplicity-backup.yaml 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 - name: Add cronjob to clean logs
cron: cron:
name: Cleanup logs name: Cleanup logs
@ -53,6 +45,14 @@
cron_file: duplicity cron_file: duplicity
user: root 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 - name: Ensure .config directory used by duplicity
file: file:
dest: /root/.config dest: /root/.config