--- # auditd refuses a plain systemctl restart, so both handlers use the tools it # provides. augenrules --load rebuilds the rule set and loads it. - name: Load the rules ansible.builtin.command: augenrules --load changed_when: true # The service module would call systemctl, which auditd refuses. The service # command goes through auditd's own restart action instead. - name: Restart auditd ansible.builtin.command: service auditd restart # noqa: command-instead-of-module changed_when: true