Housekeeping (#169)

Housekeeping

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#169
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-07-21 10:53:38 +02:00
parent 40dc9e079d
commit f05c001b57
4 changed files with 49 additions and 3 deletions

View file

@ -24,8 +24,6 @@
munin_node_additional_plugins:
- name: chrony
src: https://git.mgrote.net/mg/munin-plugins/raw/branch/master/chrony
- name: lvm_
src: https://git.mgrote.net/mg/munin-plugins/raw/branch/master/lvm_
- name: systemd_status
src: https://git.mgrote.net/mg/munin-plugins/raw/branch/master/systemd_status
- name: acng

View file

@ -10,7 +10,7 @@
create: yes
backrefs: false
mode: 0664
- name: Setze DNS-Resolver fuer pihole-*
- name: Setze VIRTUAL_HOST für homer
ansible.builtin.blockinfile:
path: /etc/lighttpd/external.conf
block: |

View file

@ -0,0 +1,11 @@
---
- hosts: all:!proxmox
become: yes
serial: 5
tasks:
- name: wirte logrotate config rsyslog
become: yes
template:
src: rsyslog_template
dest: /etc/logrotate.d/rsyslog

View file

@ -0,0 +1,37 @@
/var/log/syslog
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}