Ingen beskrivning
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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