common: Configure journald to keep logs persistent until storage max
parent
235103fbd6
commit
95dcb5a8b5
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Create directory for journald config
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ global_systemd_journal_configuration_directory }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: u=rwx,g=rx,o=rx
|
||||||
|
|
||||||
|
- name: Configure journald log
|
||||||
|
template:
|
||||||
|
src: journald.conf
|
||||||
|
dest: "{{ global_systemd_journal_configuration_directory }}/main.conf"
|
||||||
|
notify:
|
||||||
|
- restart systemd-journald
|
@ -0,0 +1,3 @@
|
|||||||
|
[Journal]
|
||||||
|
Storage=persistent
|
||||||
|
SystemMaxUse={{ global_systemd_journal_max_storage }}
|
Loading…
Reference in New Issue