disable systemd audit logging (#902)

* os_hardening: disable systemd audit logging

disable audit logging via systemd-journald when enabling auditd
as this leads to duplicate logs in the journal or even /var/log/messages
depending on the configuration

Signed-off-by: Christoph Sieber <[email protected]>

* Don't disable systemd-journald-audit.socket on Suse

it seems the socket doesn't exist on this OS

Signed-off-by: Christoph Sieber <[email protected]>

---------

Signed-off-by: Christoph Sieber <[email protected]>
Co-authored-by: Christoph Sieber <[email protected]>
This commit is contained in:
ChristophandChristoph Sieber authored and GitHub committed 2025-10-27 22:23:39 +01:00
1 parent 9976169cad
commit 940ed980b3
2 files changed
+17

No files matched your search

+5
View File
@@ -27,3 +27,8 @@
path: "{{ item }}"
state: remounted
loop: "{{ mountpoints_changed }}"
- name: Restart journald
ansible.builtin.systemd:
name: systemd-journald.service
state: restarted