5 lines
160 B
YAML

---
- name: Log cleanup results
ansible.builtin.debug:
msg: "Removed {{ (old_configs.files | sort(attribute='mtime'))[:-10] | length }} old config files"