Add service enablement for ClamAV daemon and freshclam in samba-install.yml

This commit is contained in:
2026-05-26 02:19:23 +02:00
parent 91bda857dc
commit eed58ba811
+14
View File
@@ -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