From 51e2e0f92d5fd166e22328b2af8279679a4e4228 Mon Sep 17 00:00:00 2001 From: koneill94 <35918022+koneill94@users.noreply.github.com> Date: Thu, 21 Mar 2019 11:34:44 +0000 Subject: [PATCH] Journal sizing change (#129) journal resize to 3G added to allserverspostdeployment --- roles/allserverspostdeployment/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/roles/allserverspostdeployment/tasks/main.yml b/roles/allserverspostdeployment/tasks/main.yml index b215c8d..a4e65a7 100644 --- a/roles/allserverspostdeployment/tasks/main.yml +++ b/roles/allserverspostdeployment/tasks/main.yml @@ -22,6 +22,19 @@ systemd: state: reloaded name: sshd + +- name: Set journal size to 3G + replace: + path: /etc/systemd/journald.conf + regexp: '^\sSystemMaxUse=.*' + replace: ' SystemMaxUse=3G' + when: inventory_hostname in groups.nodes and inventory_hostname not in groups.masters + +- name: Restart systemd-journald service to implement journal size change + service: + name: systemd-journald + state: restarted + when: inventory_hostname in groups.nodes and inventory_hostname not in groups.masters - include_tasks: squid-whitelist.yml when: multinetwork