mirror of
https://github.com/nikdoof/ansible-cis.git
synced 2025-12-13 09:32:15 +00:00
32 lines
736 B
YAML
32 lines
736 B
YAML
---
|
|
- name: Forward journald to syslog
|
|
community.general.ini_file:
|
|
path: /etc/systemd/journald.conf
|
|
section: Journal
|
|
option: ForwardToSyslog
|
|
value: "yes"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: restart journald
|
|
- name: Compress journald logs
|
|
community.general.ini_file:
|
|
path: /etc/systemd/journald.conf
|
|
section: Journal
|
|
option: Compress
|
|
value: "yes"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: restart journald
|
|
- name: Ensure logs are wrote to persistent disk
|
|
community.general.ini_file:
|
|
path: /etc/systemd/journald.conf
|
|
section: Journal
|
|
option: Storage
|
|
value: persistent
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: restart journald
|