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:
Kevin Fenzi 2016-02-10 00:03:09 +00:00
parent 7684cd0cb7
commit 65699b531d
2 changed files with 5 additions and 1 deletions

View file

@ -215,3 +215,5 @@
with_items:
- "{{ if_uuid.stdout_lines }}"
- name: flush journald tmpfiles to persistent store
command: pkill -USR1 systemd-journald

View file

@ -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