From e88941005735f026e5fe4a42bc08416b459803a3 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 19 Nov 2021 11:41:28 +0100 Subject: [PATCH] Playing with file filters. --- odroid.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/odroid.yaml b/odroid.yaml index 3a05c5a..db9fc36 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -112,10 +112,8 @@ loop: "{{ systems }}" - name: Store the daily backup - debug: var={{ item.path | dirname }} + debug: var="{{ item.path | dirname }}" with_items: "{{ backup_files.results | map(attribute='files') | list }}" - loop_control: - label: {{ item.path | basename }} when: (ansible_date_time.weekday_number != "7" and ansible_date_time.day != "01") - name: Cleanup original backup files