Fix service order and add SELinux support

This commit is contained in:
2021-07-06 03:26:42 +00:00
parent dbc28d1230
commit 887bef0b44
2 changed files with 21 additions and 3 deletions

View File

@@ -13,16 +13,21 @@ package_list:
state: 'present'
- name: 'clamd'
state: 'present'
seboolean_list:
- name: 'antivirus_can_scan_system'
persistent: 'yes'
state: 'yes'
service_list:
# NOTE: Order is important
- name: 'clamd@scan.service'
state: 'started'
enabled: 'yes'
- 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'