Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logwatch.yml 639B

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