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"
|
msg: "Reboot required for auditd to apply new rules as immutable set"
|
||||||
notify: Set_reboot_required
|
notify: Set_reboot_required
|
||||||
|
|
||||||
- name: Restart auditd
|
- name: Stop auditd process
|
||||||
when: discovered_audit_rules_updated is defined
|
ansible.builtin.shell: systemctl kill auditd
|
||||||
tags: skip_ansible_lint
|
listen: Restart auditd
|
||||||
ansible.builtin.shell: service auditd restart
|
|
||||||
|
- name: Start auditd process
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
name: auditd
|
||||||
|
state: started
|
||||||
|
listen: Restart auditd
|
||||||
|
|
||||||
- name: Restart sshd
|
- name: Restart sshd
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|
Loading…
Reference in New Issue