This repository has been archived on 2021-04-04. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-server/roles/base/tasks/journal.yml

25 lines
551 B
YAML

---
- name: make journal persistent
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: Storage
value: persistent
notify: restart-journald
- name: set max data retention for journal
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: MaxRetentionSec
value: 1month
notify: restart-journald
- name: do not forward journal entries to syslog
ini_file:
path: /etc/systemd/journald.conf
section: Journal
option: ForwardToSyslog
value: no
notify: restart-journald