summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/clamav.yml
blob: e1ece0d37275c4d2cf1a7edfeca18906854e58ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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