clamav: configure debconf before install packages
This commit is contained in:
parent
64928db22b
commit
71f64d2c24
|
@ -1,42 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: install ClamAV
|
|
||||||
apt:
|
|
||||||
name: "{{ item }}"
|
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- clamav-daemon
|
|
||||||
- clamav
|
|
||||||
- clamdscan
|
|
||||||
- clamav-freshclam
|
|
||||||
- arc
|
|
||||||
- arj
|
|
||||||
- zoo
|
|
||||||
- pax
|
|
||||||
- bzip2
|
|
||||||
- cabextract
|
|
||||||
- rpm
|
|
||||||
- lzop
|
|
||||||
- razor
|
|
||||||
tags:
|
|
||||||
- clamav
|
|
||||||
|
|
||||||
- name: add clamav user to amavis group
|
|
||||||
user:
|
|
||||||
name: clamav
|
|
||||||
groups: amavis
|
|
||||||
append: True
|
|
||||||
tags:
|
|
||||||
- clamav
|
|
||||||
|
|
||||||
- name: allow supplementary groups
|
|
||||||
replace:
|
|
||||||
dest: /etc/clamav/clamd.conf
|
|
||||||
regexp: 'AllowSupplementaryGroups false'
|
|
||||||
replace: 'AllowSupplementaryGroups true'
|
|
||||||
notify: restart clamav
|
|
||||||
tags:
|
|
||||||
- clamav
|
|
||||||
|
|
||||||
- name: configure clamav-daemon
|
- name: configure clamav-daemon
|
||||||
debconf:
|
debconf:
|
||||||
name: clamav-daemon
|
name: clamav-daemon
|
||||||
|
@ -109,3 +71,41 @@
|
||||||
- { key: 'clamav-freshclam/internet_interface', type: 'string', value: '' }
|
- { key: 'clamav-freshclam/internet_interface', type: 'string', value: '' }
|
||||||
tags:
|
tags:
|
||||||
- clamav
|
- clamav
|
||||||
|
|
||||||
|
- name: install ClamAV
|
||||||
|
apt:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: present
|
||||||
|
with_items:
|
||||||
|
- clamav-daemon
|
||||||
|
- clamav
|
||||||
|
- clamdscan
|
||||||
|
- clamav-freshclam
|
||||||
|
- arc
|
||||||
|
- arj
|
||||||
|
- zoo
|
||||||
|
- pax
|
||||||
|
- bzip2
|
||||||
|
- cabextract
|
||||||
|
- rpm
|
||||||
|
- lzop
|
||||||
|
- razor
|
||||||
|
tags:
|
||||||
|
- clamav
|
||||||
|
|
||||||
|
- name: add clamav user to amavis group
|
||||||
|
user:
|
||||||
|
name: clamav
|
||||||
|
groups: amavis
|
||||||
|
append: True
|
||||||
|
tags:
|
||||||
|
- clamav
|
||||||
|
|
||||||
|
- name: allow supplementary groups
|
||||||
|
replace:
|
||||||
|
dest: /etc/clamav/clamd.conf
|
||||||
|
regexp: 'AllowSupplementaryGroups false'
|
||||||
|
replace: 'AllowSupplementaryGroups true'
|
||||||
|
notify: restart clamav
|
||||||
|
tags:
|
||||||
|
- clamav
|
||||||
|
|
Loading…
Reference in New Issue