diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2014-06-27 06:13:00 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:51:54 +0200 |
commit | 801387f160e8baa03438c52fb584e045cb4d8fbe (patch) | |
tree | a300b4e10bb4e480a938b57472ac6edc7cbdcd6d /roles/common/tasks/logging.yml | |
parent | ce1fce7ce0888f91e9f306dbd09576d3d754da30 (diff) |
logcheck-database tweaks.
Diffstat (limited to 'roles/common/tasks/logging.yml')
-rw-r--r-- | roles/common/tasks/logging.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/common/tasks/logging.yml b/roles/common/tasks/logging.yml index d25a75e..472bb3b 100644 --- a/roles/common/tasks/logging.yml +++ b/roles/common/tasks/logging.yml @@ -2,39 +2,41 @@ apt: pkg={{ item }} with_items: - rsyslog - syslog-summary - logcheck - logcheck-database - logrotate - name: Start rsyslog service: name=rsyslog state=started tags: - syslog - name: Configure logcheck copy: src=etc/logcheck/{{ item }} dest=/etc/logcheck/{{ item }} owner=root group=logcheck mode=0640 with_items: - logcheck.conf - - ignore.d.server/common.local + - ignore.d.server/common-local + - ignore.d.server/dovecot-local + - ignore.d.server/postfix-local - violations.ignore.d/logcheck-sudo - name: Minimal logging policy (1) lineinfile: dest=/etc/logrotate.d/rsyslog regexp="^/var/log/mail.(log|info)$" state=absent - name: Minimal logging policy (2) copy: src=etc/logrotate.d/fripost-mail dest=/etc/logrotate.d/fripost-mail owner=root group=root mode=0644 tags: - logrotate # TODO: We also have specialized per-role logcheck rulesets, per-role # logrotate configuration (/etc/logrotate.d), and per-role rsyslog # configuration (/etc/rsyslog.d). |