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

25 lines
551 B
YAML
Raw Normal View History

2019-03-31 15:25:33 +02:00
---
- 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