clamav.yml 706 B

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: Install ClamAV packages
  3. dnf:
  4. name:
  5. - clamav-data-empty
  6. - clamav-server
  7. - clamav-server-systemd
  8. - clamav-update
  9. state: present
  10. - name: Configure freshclam
  11. replace:
  12. dest: /etc/freshclam.conf
  13. regexp: "Example*"
  14. replace: ""
  15. - name: Install Pagure's ClamAV configuration
  16. copy:
  17. src: clamd.conf
  18. dest: /etc/clamd.d/pagure.conf
  19. # pyclamd expects /etc/clamd.conf
  20. - name: Link /etc/clamd.conf to our pagure config
  21. file: src=/etc/clamd.d/pagure.conf dest=/etc/clamd.conf state=link
  22. - name: Download latest ClamAV database
  23. command: freshclam
  24. ignore_errors: yes
  25. - name: Start ClamAV
  26. service: name=clamd@pagure state=started enabled=yes