diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index a93894667145fe2e2bf25d9fd98c11baf063bc71..da6bcf2cf1038bfaf26f8ac77557637dba979ba4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -31,7 +31,7 @@ repos:
         name: Markdown Lint
   # https://github.com/ansible/ansible-lint/releases
   - repo: https://github.com/ansible/ansible-lint.git
-    rev: v24.2.1
+    rev: v24.2.2
     hooks:
       - id: ansible-lint
         name: Ansible Lint
diff --git a/tasks/mpm.yml b/tasks/mpm.yml
index b76a16138adc8edc5d0e010763af4665c9dd8b70..57a1357415bec48367410f774d97f09290e0ce92 100644
--- a/tasks/mpm.yml
+++ b/tasks/mpm.yml
@@ -51,7 +51,10 @@
       ansible.builtin.service:
         name: apache2
         state: restarted
-      when: apache_mpm_event_enabled.changed
+      when:
+        - apache_mpm_event_enabled.changed
+        - apache_init is defined
+        - apache_init == "systemd"
 
   when:
     - ansible_local.a2query.mpm == "prefork"
@@ -80,7 +83,10 @@
       ansible.builtin.service:
         name: apache2
         state: restarted
-      when: apache_mpm_prefork_enabled.changed
+      when:
+        - apache_mpm_prefork_enabled.changed
+        - apache_init is defined
+        - apache_init == "systemd"
 
   when:
     - ansible_local.a2query.mpm == "event"