From 0f57d8f477bfe6d0ffd0d18e8c01f0aa141cdc2d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 15 Sep 2015 18:14:12 +0200 Subject: Configure FreshClam. --- roles/common/tasks/clamav.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'roles/common/tasks') 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 @@ -5,6 +5,16 @@ - 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: -- cgit v1.2.3