---
-
  name: Restart clamav daemon
  ansible.builtin.service:
    name: "{{ clamav_daemon }}"
    state: restarted
  when: clamav_daemon_state != 'stopped'

-
  name: Reload systemd
  ansible.builtin.systemd:
    state: stopped
    daemon_reload: true
    name: "{{ clamav_freshclam_daemon }}"
