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 784B

12345678910111213141516171819202122232425262728
  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: Determine if rspamd is installed
  14. stat: path=/etc/rspamd
  15. register: rspamd_config_file
  16. - name: Configure rspamd to let logs through
  17. template: src=etc_rspamd_rspamd.conf.local.j2 dest=/etc/rspamd/rspamd.conf.local
  18. notify: restart rspamd
  19. when: rspamd_config_file.stat.exists == True
  20. - name: Remove logwatch's dist cronjob
  21. file: state=absent path=/etc/cron.daily/00logwatch
  22. - name: Configure weekly logwatch cronjob
  23. cron: special_time=weekly job=/usr/sbin/logwatch name=logwatch