Add service enablement for ClamAV daemon and freshclam in samba-install.yml
This commit is contained in:
@@ -29,6 +29,20 @@
|
|||||||
- samba-server
|
- samba-server
|
||||||
- samba-virusfilter
|
- samba-virusfilter
|
||||||
|
|
||||||
|
- name: (samba-install.yml) Ensure clamav-daemon and clamav-freshclam services are enabled
|
||||||
|
service:
|
||||||
|
name: "{{ item }}"
|
||||||
|
enabled: yes
|
||||||
|
loop:
|
||||||
|
- clamav-daemon
|
||||||
|
- clamav-freshclam
|
||||||
|
when:
|
||||||
|
- "groups['samba_server']|string is search(inventory_hostname)"
|
||||||
|
- samba_shares | selectattr('vfs_object_virusfilter', 'defined') | selectattr('vfs_object_virusfilter', 'equalto', true) | list | length > 0
|
||||||
|
tags:
|
||||||
|
- samba-server
|
||||||
|
- samba-virusfilter
|
||||||
|
|
||||||
- name: (samba-install.yml) Ensure quarantine directory exists
|
- name: (samba-install.yml) Ensure quarantine directory exists
|
||||||
file:
|
file:
|
||||||
path: /data/samba/QUARANTINE
|
path: /data/samba/QUARANTINE
|
||||||
|
|||||||
Reference in New Issue
Block a user