mirror of
https://github.com/nikdoof/ansible-cis.git
synced 2025-12-25 07:49:21 +00:00
Update to Dimension's version
This commit is contained in:
31
tasks/journald.yaml
Normal file
31
tasks/journald.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
---
|
||||
- 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
|
||||
Reference in New Issue
Block a user