diff --git a/handlers/main.yml b/handlers/main.yml index c302106b..105f7f1a 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -99,7 +99,9 @@ - auditd_immutable_check.stdout == '1' - name: Restart auditd - ansible.builtin.shell: service auditd restart + ansible.builtin.systemd: + name: auditd + state: restarted - name: Change_requires_reboot ansible.builtin.set_fact: