We need to tell systemd-journald that it should sync out to persist storage otherwise it won't work until next reboot
This commit is contained in:
parent
7684cd0cb7
commit
65699b531d
2 changed files with 5 additions and 1 deletions
|
@ -215,3 +215,5 @@
|
|||
with_items:
|
||||
- "{{ if_uuid.stdout_lines }}"
|
||||
|
||||
- name: flush journald tmpfiles to persistent store
|
||||
command: pkill -USR1 systemd-journald
|
||||
|
|
|
@ -237,12 +237,14 @@
|
|||
|
||||
- name: enable journald persistence
|
||||
file: path=/var/log/journal state=directory
|
||||
owner=root group=root mode=0600
|
||||
owner=root group=systemd-journal mode=0600
|
||||
when: ansible_distribution_major_version|int >= 7
|
||||
tags:
|
||||
- journald
|
||||
- config
|
||||
- base
|
||||
notify:
|
||||
- flush journald tmpfiles to persistent store
|
||||
|
||||
- name: rsyslog.conf
|
||||
copy: src={{ item }} dest=/etc/rsyslog.conf mode=644
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue