Adds handlers to reload AppArmor and restart ClamAV
Ensures AppArmor profile for ClamAV is reloaded and the ClamAV daemon is restarted when necessary, improving service reliability and reflecting updated security profiles.
This commit is contained in:
@@ -112,3 +112,10 @@
|
||||
daemon_reload: yes
|
||||
state: restarted
|
||||
|
||||
- name: Reload AppArmor profile clamd
|
||||
command: apparmor_parser -r /etc/apparmor.d/usr.sbin.clamd
|
||||
|
||||
- name: Restart clamav-daemon
|
||||
service:
|
||||
name: clamav-daemon
|
||||
state: restarted
|
||||
|
||||
Reference in New Issue
Block a user