clamav.yml 692 B

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