From 1f78326503b0e619dc345911c649f87ca9820cf9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 26 May 2026 14:16:45 +0200 Subject: [PATCH] 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. --- roles/common/handlers/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml index 12731d8..c3be85d 100644 --- a/roles/common/handlers/main.yml +++ b/roles/common/handlers/main.yml @@ -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