From e871994959fccba3051d451f6e00c33a11370a00 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 4 Jan 2014 21:00:57 +0100 Subject: Install ClamAV. --- roles/common/tasks/clamav.yml | 12 ++++++++++++ roles/common/tasks/main.yml | 4 +--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 roles/common/tasks/clamav.yml diff --git a/roles/common/tasks/clamav.yml b/roles/common/tasks/clamav.yml new file mode 100644 index 0000000..f66689c --- /dev/null +++ b/roles/common/tasks/clamav.yml @@ -0,0 +1,12 @@ +- name: Install ClamAV + apt: pkg={{ item }} + with_items: + - clamav + - clamav-daemon + - clamav-freshclam + +- name: Start ClamAV + service: name={{ item }} state=started + with_items: + - clamav-daemon + - clamav-freshclam diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 12b4e55..8fbeb0c 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -5,6 +5,7 @@ - include: firewall.yml tags=firewall,iptables - include: samhain.yml tags=samhain - include: rkhunter.yml tags=rkhunter +- include: clamav.yml tags=clamav - include: fail2ban.yml tags=fail2ban - include: smart.yml tags=smartmontools,smart - include: ipsec.yml tags=strongswan,ipsec @@ -16,9 +17,6 @@ apt: pkg={{ item }} with_items: - ca-certificates - - clamav - - clamav-daemon - - clamav-freshclam - daemontools - etckeeper - ethtool -- cgit v1.2.3