mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 02:45:02 +01:00
added role native-journalctl
This commit is contained in:
parent
0de283bddd
commit
4a78089ffc
3
roles/native-journalctl/handlers/main.yml
Normal file
3
roles/native-journalctl/handlers/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: restart systemd-journald
|
||||
service: name=systemd-journald state=restarted
|
3
roles/native-journalctl/tasks/main.yml
Normal file
3
roles/native-journalctl/tasks/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
- name: copy journald.conf
|
||||
template: src=templates/journald.conf.j2 dest=/etc/systemd/journald.conf
|
||||
notify: restart systemd-journald
|
47
roles/native-journalctl/templates/journald.conf.j2
Normal file
47
roles/native-journalctl/templates/journald.conf.j2
Normal 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
|
Loading…
Reference in New Issue
Block a user