main.ymlΒΆ
---
- name: "π§Ή Cleanup caches and logs (cross-distro: arch/debian/ubuntu/fedora/centos)"
become: true
ansible.builtin.script: shell/cleanup_caches.sh
changed_when: true
- name: π§Ή Cleanup journald logs (CI/container only)
become: true
ansible.builtin.shell: |
set -euo pipefail
journalctl --disk-usage || true
journalctl --vacuum-size=100M
journalctl --vacuum-time=3h || true
journalctl --disk-usage || true
args:
executable: /bin/bash
changed_when: true