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: