devolab-openshift/journald-size.yml
2019-03-25 11:40:20 +01:00

14 lines
341 B
YAML

- hosts: all
become: true
tasks:
- name: Update journald conf
lineinfile:
regexp: "^.*SystemMaxUse.*$"
line: SystemMaxUse=500M
path: /etc/systemd/journald.conf
notify: restart journald
handlers:
- name: restart journald
service:
name: systemd-journald
state: restarted