diff --git a/odroid.yaml b/odroid.yaml index 31c2dbe..1731e36 100644 --- a/odroid.yaml +++ b/odroid.yaml @@ -101,17 +101,16 @@ - name: Find old daily backups find: - paths: "{{ backup_dir }}/{{ item }}/daily" + paths: "{{ backup_dir }}/{{ item }}/daily/" file_type: file age: 1h age_stamp: ctime patterns: '*.sql.gz' + recurse: false register: oldBackups loop: "{{ databases }}" - - name: Delete old daily backups - debug: var=item.files - with_items: "{{ oldBackups.results | list}}" + - debug: var=oldBackups - name: Find old weekly backups find: