added role native-journalctl

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-31 14:17:04 +01:00
parent 0de283bddd
commit 4a78089ffc
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,3 @@
---
- name: restart systemd-journald
service: name=systemd-journald state=restarted

View File

@ -0,0 +1,3 @@
- name: copy journald.conf
template: src=templates/journald.conf.j2 dest=/etc/systemd/journald.conf
notify: restart systemd-journald

View File

@ -0,0 +1,47 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
#SystemMaxFiles=100
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
# Store logs for one week:
MaxRetentionSec=604800
#MaxFileSec=1month
#ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
#ReadKMsg=yes
#Audit=yes

View File

@ -4,6 +4,7 @@
roles:
- system-security
- system-update
- native-journalctl
become: true
- name: setup wireguard hosts
hosts: wireguard_hosts