Enable clamd with OnAccess scanning
This commit is contained in:
		| @@ -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' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user