Increase inotify capacity to prevent Clam OnAccess Scanner from failing

This commit is contained in:
2021-07-12 04:00:57 +00:00
parent b1031c462f
commit 9c20653f15
3 changed files with 22 additions and 3 deletions

View File

@@ -28,6 +28,11 @@ service_list:
- name: 'clamav-freshclam.service'
state: 'started'
enabled: 'yes'
sysctl_list:
- name: 'fs.inotify.max_user_watches'
state: 'present'
sysctl_file: '/etc/sysctl.d/99-clamav.conf'
value: '524288'
template_list:
- dest: '/etc/clamd.d/scan.conf'
group: 'root'