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:
parent
40dc9e079d
commit
f05c001b57
4 changed files with 49 additions and 3 deletions
|
@ -24,8 +24,6 @@
|
||||||
munin_node_additional_plugins:
|
munin_node_additional_plugins:
|
||||||
- name: chrony
|
- name: chrony
|
||||||
src: https://git.mgrote.net/mg/munin-plugins/raw/branch/master/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
|
- name: systemd_status
|
||||||
src: https://git.mgrote.net/mg/munin-plugins/raw/branch/master/systemd_status
|
src: https://git.mgrote.net/mg/munin-plugins/raw/branch/master/systemd_status
|
||||||
- name: acng
|
- name: acng
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
create: yes
|
create: yes
|
||||||
backrefs: false
|
backrefs: false
|
||||||
mode: 0664
|
mode: 0664
|
||||||
- name: Setze DNS-Resolver fuer pihole-*
|
- name: Setze VIRTUAL_HOST für homer
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/lighttpd/external.conf
|
path: /etc/lighttpd/external.conf
|
||||||
block: |
|
block: |
|
||||||
|
|
11
playbooks/on-off/repair_syslog.yml
Normal file
11
playbooks/on-off/repair_syslog.yml
Normal 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
|
37
playbooks/on-off/rsyslog_template
Normal file
37
playbooks/on-off/rsyslog_template
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue