diff options
Diffstat (limited to 'roles/common/tasks')
-rw-r--r-- | roles/common/tasks/clamav.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/common/tasks/clamav.yml b/roles/common/tasks/clamav.yml index f66689c..e1ece0d 100644 --- a/roles/common/tasks/clamav.yml +++ b/roles/common/tasks/clamav.yml @@ -1,12 +1,22 @@ - name: Install ClamAV apt: pkg={{ item }} with_items: - clamav - clamav-daemon - clamav-freshclam +- name: Configure FreshClam + lineinfile: "dest=/etc/clamav/freshclam.conf + line='DatabaseMirror {{ item }}'" + with_items: + - db.local.clamav.net + - database.clamav.net + - db.other.clamav.net + notify: + - Restart freshclam + - name: Start ClamAV service: name={{ item }} state=started with_items: - clamav-daemon - clamav-freshclam |