summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-07-09 19:57:56 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-07-09 20:20:31 +0200
commitcbe1123ede86042ab0d62bc4f972f026301d5016 (patch)
treeb3f144b8c6f498e842c31863a28c405423cc96e8 /roles/common/tasks
parentd237ec31f785c801b29d679f10f8f2d618ff1585 (diff)
ClamAV (FreshClam): use a localized Database Mirror.
As db.local.clamav.net is not always properly localized. Furthermore, our previous Ansiblee script did not ensure ordering of the DatabaseMirror lines.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r--roles/common/tasks/clamav.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/roles/common/tasks/clamav.yml b/roles/common/tasks/clamav.yml
index e1ece0d..de11ee6 100644
--- a/roles/common/tasks/clamav.yml
+++ b/roles/common/tasks/clamav.yml
@@ -6,12 +6,11 @@
- 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
+ template: src=etc/clamav/freshclam.conf.j2
+ dest=/etc/clamav/freshclam.conf
+ owner=root group=root
+ mode=0644
+ tags: freshclam
notify:
- Restart freshclam