diff --git a/tasks/duplicity.yml b/tasks/duplicity.yml index 88ee765..7138ebd 100644 --- a/tasks/duplicity.yml +++ b/tasks/duplicity.yml @@ -46,8 +46,7 @@ when: duplicity_gpg_key is undefined tags: ['backup_duplicity'] - -- name: duplicity | create configuration directory +- name: duplicity | create configuration directory file: path: /etc/duplicity state: directory @@ -75,12 +74,12 @@ - name: duplicity | create backup cronjob cron: name: duplicity backup - minute: "{{ duplicity_cron_backup_minute }}" - hour: "{{ duplicity_cron_backup_hour }}" - day: "{{ duplicity_cron_backup_day }}" - month: "{{ duplicity_cron_backup_month }}" - weekday: "{{ duplicity_cron_backup_weekday }}" - user: "{{ duplicity_cron_backup_user }}" + minute: "{{ duplicity_cron_backup_minute }}" + hour: "{{ duplicity_cron_backup_hour }}" + day: "{{ duplicity_cron_backup_day }}" + month: "{{ duplicity_cron_backup_month }}" + weekday: "{{ duplicity_cron_backup_weekday }}" + user: "{{ duplicity_cron_backup_user }}" job: "source /etc/duplicity/duplicity.cnf && duplicity --encrypt-key {{ duplicity_gpg_key }} --s3-use-new-style -v 4 --archive-dir={{ duplicity_archive_dir }} --full-if-older-than {{ duplicity_full_older_than }}D / \"{{ duplicity_s3_path }}\" --exclude-filelist {{ duplicity_exclude_filelist }}" when: - duplicity_gpg_key is defined @@ -89,12 +88,12 @@ - name: duplicity | create cleanup cronjob cron: name: duplicity cleanup - minute: "{{ duplicity_cron_backup_minute }}" - hour: "{{ duplicity_cron_backup_hour }}" - day: "{{ duplicity_cron_backup_day }}" - month: "{{ duplicity_cron_backup_month }}" - weekday: "{{ duplicity_cron_backup_weekday }}" - user: "{{ duplicity_cron_backup_user }}" + minute: "{{ duplicity_cron_backup_minute }}" + hour: "{{ duplicity_cron_backup_hour }}" + day: "{{ duplicity_cron_backup_day }}" + month: "{{ duplicity_cron_backup_month }}" + weekday: "{{ duplicity_cron_backup_weekday }}" + user: "{{ duplicity_cron_backup_user }}" job: "source /etc/duplicity/duplicity.cnf && duplicity --encrypt-key {{ duplicity_gpg_key }} --force --s3-use-new-style -v 4 remove-older-than {{ duplicity_remove_older_than }}D \"{{ duplicity_s3_path }}\"" when: - duplicity_gpg_key is defined