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:
2026-05-26 14:16:45 +02:00
parent f1f169d3aa
commit 1f78326503
+7
View File
@@ -112,3 +112,10 @@
daemon_reload: yes daemon_reload: yes
state: restarted 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