Updated auditd handler
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
4f5a3f7c8d
commit
de47c63145
|
@ -250,10 +250,15 @@
|
|||
msg: "Reboot required for auditd to apply new rules as immutable set"
|
||||
notify: Set_reboot_required
|
||||
|
||||
- name: Restart auditd
|
||||
when: discovered_audit_rules_updated is defined
|
||||
tags: skip_ansible_lint
|
||||
ansible.builtin.shell: service auditd restart
|
||||
- name: Stop auditd process
|
||||
ansible.builtin.shell: systemctl kill auditd
|
||||
listen: Restart auditd
|
||||
|
||||
- name: Start auditd process
|
||||
ansible.builtin.systemd_service:
|
||||
name: auditd
|
||||
state: started
|
||||
listen: Restart auditd
|
||||
|
||||
- name: Restart sshd
|
||||
ansible.builtin.systemd:
|
||||
|
|
Loading…
Reference in New Issue