Fixing a mapping issue for some of the backup cleanups
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
ansible.builtin.set_fact:
|
||||
oldest_file_paths: >-
|
||||
{{ (all_backup_files.files | sort(attribute='mtime'))[:all_backup_files.files | length - backup_rules.max_backups_kept] |
|
||||
map(attribute=path) | list }}
|
||||
map(attribute='path') | list }}
|
||||
|
||||
- name: Remove the files
|
||||
ansible.builtin.file:
|
||||
|
||||
Reference in New Issue
Block a user