From 9620e36ed7d342010676578ecedb3ff44b198c46 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Thu, 7 Dec 2017 22:24:17 -0500 Subject: [PATCH] Permanent journald fix --- ansible/roles/install/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/install/tasks/main.yml b/ansible/roles/install/tasks/main.yml index 0e54ce655..939b1acec 100644 --- a/ansible/roles/install/tasks/main.yml +++ b/ansible/roles/install/tasks/main.yml @@ -10,6 +10,12 @@ - { regexp: "^#RateLimitInterval", line: "RateLimitInterval=0s" } - { regexp: "^#RateLimitBurst", line: "RateLimitBurst=0" } +- name: Create journal directory for permanent logs + file: path=/var/log/journal state=directory + +- name: Set journal folder with systemd-tmpfiles + command: "systemd-tmpfiles --create --prefix /var/log/journal" + - name: Restart journald service: name=systemd-journald state=restarted