1234567891011121314151617181920 |
- - name: Install logwatch
- apt: pkg={{ item }} state=installed
- with_items:
- - libdate-manip-perl
- - logwatch
- tags:
- - dependencies
-
- - name: Configure logwatch
- template: src=etc_logwatch_conf_logwatch.conf.j2 dest=/etc/logwatch/conf/logwatch.conf
-
- - name: Configure rspamd to let logs through
- template: src=etc_rspamd_rspamd.conf.local.j2 dest=/etc/rspamd/rspamd.conf.local
- notify: restart rspamd
-
- - name: Remove logwatch's dist cronjob
- file: state=absent path=/etc/cron.daily/00logwatch
-
- - name: Configure weekly logwatch cronjob
- cron: special_time=weekly job=/usr/sbin/logwatch name=logwatch
|