Fixing a mapping issue for some of the backup cleanups
This commit is contained in:
parent
01e4a973e0
commit
bbe8debeb6
@ -113,7 +113,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
oldest_file_paths: >-
|
oldest_file_paths: >-
|
||||||
{{ (all_pfsense_backups.files | sort(attribute='mtime'))[:all_pfsense_backups.files | length - backup_number_to_keep] |
|
{{ (all_pfsense_backups.files | sort(attribute='mtime'))[:all_pfsense_backups.files | length - backup_number_to_keep] |
|
||||||
map(attribute=path) | list }}
|
map(attribute='path') | list }}
|
||||||
|
|
||||||
- name: Remove the files
|
- name: Remove the files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
@ -182,7 +182,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
oldest_file_paths: >-
|
oldest_file_paths: >-
|
||||||
{{ (backup_env_files.files | sort(attribute='mtime'))[:backup_env_files.files | length - env_backups_to_keep] |
|
{{ (backup_env_files.files | sort(attribute='mtime'))[:backup_env_files.files | length - env_backups_to_keep] |
|
||||||
map(attribute=path) | list }}
|
map(attribute='path') | list }}
|
||||||
|
|
||||||
- name: Remove the files
|
- name: Remove the files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
oldest_file_paths: >-
|
oldest_file_paths: >-
|
||||||
{{ (all_backup_files.files | sort(attribute='mtime'))[:all_backup_files.files | length - backup_rules.max_backups_kept] |
|
{{ (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
|
- name: Remove the files
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
Loading…
Reference in New Issue
Block a user