From 46d10022ea632799b5a352bed47c72233ef91eff Mon Sep 17 00:00:00 2001 From: Solal Nathan Date: Sun, 14 Mar 2021 18:24:36 +0100 Subject: [PATCH] [borgbackup_client] fix rentention date to int and list correctly source directories --- roles/borgbackup_client/templates/config.yaml.j2 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/roles/borgbackup_client/templates/config.yaml.j2 b/roles/borgbackup_client/templates/config.yaml.j2 index 93335f8..497c2d4 100644 --- a/roles/borgbackup_client/templates/config.yaml.j2 +++ b/roles/borgbackup_client/templates/config.yaml.j2 @@ -2,7 +2,10 @@ {{ ansible_managed | comment }} location: - source_directories: {{ borg_backup_directories | to_nice_yaml }} + source_directories: +{% for source in borg_backup_directories %} + - {{ source }} +{% endfor %} repositories: - {{ borg_server_user }}@{{ borg_server_host }}:{{ borg_host_dir }} @@ -16,9 +19,9 @@ storage: retention: - keep_daily: "{{ borg_keep_daily }}" - keep_weekly: "{{ borg_keep_weekly }}" - keep_monthly: "{{ borg_keep_monthly }}" + keep_daily: {{ borg_keep_daily }} + keep_weekly: {{ borg_keep_weekly }} + keep_monthly: {{ borg_keep_monthly }} consistency: checks: