diff --git a/machine.yml b/machine.yml index d94133b..f56bf30 100644 --- a/machine.yml +++ b/machine.yml @@ -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. # ------------------------------------------------------------------------- diff --git a/root/etc/logcheck/ignore.d.server/yggdrasil.j2 b/root/etc/logcheck/ignore.d.server/yggdrasil.j2 new file mode 100644 index 0000000..e69de29