Skip to content

Commit

Permalink
Journal sizing change (#129)
Browse files Browse the repository at this point in the history
journal resize to 3G added to allserverspostdeployment
  • Loading branch information
k8soneill authored Mar 21, 2019
1 parent 5f99fed commit 51e2e0f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions roles/allserverspostdeployment/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 51e2e0f

Please sign in to comment.