From b81a7e7b529a106cf7167bb777ecdb3af4403d30 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Thu, 18 Nov 2021 12:07:38 +0100 Subject: [PATCH] Move from debugging to deletion. --- odroid.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odroid.yaml b/odroid.yaml index 396ba77..7335c81 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -111,7 +111,9 @@ loop: "{{ databases }}" - name: Delete old daily backups - debug: var=item.path + file: + path: "{{ item.path }}" + state: absent with_items: "{{ oldBackups.results | map(attribute='files') | list }}" loop_control: label: "{{ item.path }}"