Skip to content
Snippets Groups Projects
Verified Commit acac64d0 authored by Varac's avatar Varac
Browse files

Configure journald size limits

Closes: #575
parent 01b4d30e
No related branches found
No related tags found
No related merge requests found
---
- name: restart-journald
service:
name: systemd-journald
state: restarted
---
- name: Ensure journald directories
file:
path: '{{ item }}'
state: directory
with_items:
- /var/log/journal
- /etc/systemd/journald.conf.d
- name: Configure journald size limits
template:
dest: /etc/systemd/journald.conf.d/size-limits.conf
src: journald.conf
notify: restart-journald
---
- name: Configure journald
import_tasks: journald.yml
- name: Update apt packages cache and install needed packages
# apt-transport-https is needed for docker apt repo
# curl and git is needed for helm plugin install
......
# https://www.freedesktop.org/software/systemd/man/journald.conf.html
[Journal]
Storage=persistent
SystemMaxUse=400M
SystemMaxFileSize=30M
RuntimeMaxUse=250M
RuntimeMaxFileSize=30M
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment