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:
parent
520b8d08c3
commit
3194eba094
|
|
@ -27,7 +27,7 @@
|
||||||
msg: "Before cleanup: {{ fs_before.stdout }}"
|
msg: "Before cleanup: {{ fs_before.stdout }}"
|
||||||
|
|
||||||
- name: Compress old journal logs
|
- name: Compress old journal logs
|
||||||
shell: journalctl --vacuum=time:{{ cleanup_journal_days }}d
|
shell: journalctl --vacuum-time={{ cleanup_journal_days }}d
|
||||||
become: yes
|
become: yes
|
||||||
register: journal_cleanup
|
register: journal_cleanup
|
||||||
when: cleanup_journal_cache | default(true)
|
when: cleanup_journal_cache | default(true)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue