summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/clamav.yml
blob: de11ee65726a77f071b02cd9ecf6f01e6ebdb134 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- name: Install ClamAV
  apt: pkg={{ item }}
  with_items:
    - clamav
    - clamav-daemon
    - clamav-freshclam

- name: Configure FreshClam
  template: src=etc/clamav/freshclam.conf.j2
            dest=/etc/clamav/freshclam.conf
            owner=root group=root
            mode=0644
  tags: freshclam
  notify:
    - Restart freshclam

- name: Start ClamAV
  service: name={{ item }} state=started
  with_items:
    - clamav-daemon
    - clamav-freshclam