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

@@ -29,6 +29,19 @@
- ansible_system == 'Linux'
- services is not defined
ansible.builtin.service_facts:
- name: 'ensure sysctl'
when:
- ansible_system == 'Linux'
- ensure_clamav is defined
- ensure_clamav.sysctl_list is defined
- ensure_clamav.sysctl_list is iterable
ansible.posix.sysctl:
name: '{{ item.name }}'
reload: '{{ item.reload | default(omit) }}'
state: '{{ item.state }}'
sysctl_file: '{{ item.sysctl_file | default(omit) }}'
sysctl_set: '{{ item.sysctl_set | default(omit) }}'
value: '{{ item.value | default(omit) }}'
- name: 'ensure packages'
when:
- ansible_system == 'Linux'