Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

logwatch.yml 614B

1234567891011121314151617181920
  1. - name: Install logwatch
  2. apt: pkg={{ item }} state=present
  3. with_items:
  4. - libdate-manip-perl
  5. - logwatch
  6. tags:
  7. - dependencies
  8. - name: Configure logwatch
  9. template: src=etc_logwatch_conf_logwatch.conf.j2 dest=/etc/logwatch/conf/logwatch.conf
  10. - name: Configure rspamd to let logs through
  11. template: src=etc_rspamd_rspamd.conf.local.j2 dest=/etc/rspamd/rspamd.conf.local
  12. notify: restart rspamd
  13. - name: Remove logwatch's dist cronjob
  14. file: state=absent path=/etc/cron.daily/00logwatch
  15. - name: Configure weekly logwatch cronjob
  16. cron: special_time=weekly job=/usr/sbin/logwatch name=logwatch