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