From f72411e9d7b3b61768b62123ef186f730a575e05 Mon Sep 17 00:00:00 2001 From: L3D Date: Fri, 11 Mar 2022 14:07:28 +0100 Subject: [PATCH] improve pruning --- templates/includes/repo_todos.sh.j2 | 4 ++-- vars/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/includes/repo_todos.sh.j2 b/templates/includes/repo_todos.sh.j2 index b6e4c8d..7cb6f0d 100644 --- a/templates/includes/repo_todos.sh.j2 +++ b/templates/includes/repo_todos.sh.j2 @@ -103,7 +103,7 @@ START DOING STUFF INSIDE THE RESTIC REPO FOR LOOP echo "init $BACKUP_NAME" restic {{ restic_archiver__default_opt }} forget {{ retention_pattern(repo) }} echo "restic forget done" - {%- if repo.prune|default(restic_archiver__prune) %} + {% if repo.prune|default(restic_archiver__prune) %} restic {{ restic_archiver__default_opt }} prune echo "restic prune done" {% endif %} @@ -176,7 +176,7 @@ EOT BACKUP_NAME="{{ repo.name }}_archive" restic {{ restic_archiver__default_opt }} forget {{ retention_archive_pattern(repo) }} - {%- if repo.prune|default(restic_archiver__prune) %} + {% if repo.prune|default(restic_archiver__prune) %} restic {{ restic_archiver__default_opt }} prune echo "restic ARCHIVE prune done" {% endif %} diff --git a/vars/main.yml b/vars/main.yml index 89ac0ad..3f7503c 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 52 # should be int +playbook_version_number: 53 # should be int playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'