Configure log monitoring

This commit is contained in:
Wojciech Kozlowski 2022-08-30 19:46:30 +02:00
parent 2bf64d8cc2
commit c93f8c8935
2 changed files with 17 additions and 0 deletions

View File

@ -376,6 +376,23 @@
when:
smartd_conf is changed
# -------------------------------------------------------------------------
# Log monitoring.
# -------------------------------------------------------------------------
- name: Install logcheck and logrotate
apt:
name:
- logcheck
- logrotate
- name: Configure logcheck
template:
src: ./root/etc/logcheck/ignore.d.server/yggdrasil.j2
dest: /etc/logcheck/ignore.d.server/yggdrasil
group: logcheck
mode: 0644
# -------------------------------------------------------------------------
# Set MotD.
# -------------------------------------------------------------------------