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 }}"