Enable clamd with OnAccess scanning

This commit is contained in:
2021-07-06 02:30:41 +00:00
parent 4751219758
commit 29043741f7
2 changed files with 809 additions and 0 deletions

View File

@@ -11,11 +11,24 @@ package_list:
state: 'present'
- name: 'clamav-update'
state: 'present'
- name: 'clamd'
state: 'present'
service_list:
- name: 'clamav-clamonacc.service'
state: 'started'
enabled: 'yes'
- name: 'clamav-freshclam.service'
state: 'started'
enabled: 'yes'
- name: 'clamd@scan.service'
state: 'started'
enabled: 'yes'
template_list:
- dest: '/etc/clamd.d/scan.conf'
group: 'root'
mode: '0644'
owner: 'root'
src: '{{ ansible_distribution }}/{{ ansible_distribution_major_version }}/etc/clamd.d/scan.conf'
- dest: '/etc/freshclam.conf'
group: 'root'
mode: '0600'