Fix journalctl command syntax in remediation playbook

Changed from invalid '--vacuum=time:30d' to correct '--vacuum-time=30d'
This command now properly compresses and removes old journal logs.

Test result: Freed 1.9GB on proxmox-00

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
directlx 2026-02-09 07:54:26 -05:00
parent 520b8d08c3
commit 3194eba094
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
msg: "Before cleanup: {{ fs_before.stdout }}"
- name: Compress old journal logs
shell: journalctl --vacuum=time:{{ cleanup_journal_days }}d
shell: journalctl --vacuum-time={{ cleanup_journal_days }}d
become: yes
register: journal_cleanup
when: cleanup_journal_cache | default(true)