summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/logging.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-03-13 16:43:50 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:43 +0200
commitd72d516f2647a3e03b5e11d891c6ec4e9ddcf9cf (patch)
tree3d8e0f75a74d710aa1f0d84ce27daea302acb6e1 /roles/common/tasks/logging.yml
parent984708466b7c368e98a8b51c00acff5e6b870bd2 (diff)
Make use of Ansible 1.5 new features.
Most notably pipelining=True and sysctl_set=yes.
Diffstat (limited to 'roles/common/tasks/logging.yml')
-rw-r--r--roles/common/tasks/logging.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/common/tasks/logging.yml b/roles/common/tasks/logging.yml
index 06f06b0..d25a75e 100644
--- a/roles/common/tasks/logging.yml
+++ b/roles/common/tasks/logging.yml
@@ -3,37 +3,38 @@
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
+ - 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).