forked from ansible-lockdown/RHEL9-CIS
Merge pull request #264 from ansible-lockdown/auditd_restart
Update to how auditd restarts
This commit is contained in:
commit
07dc7fb302
2 changed files with 10 additions and 3 deletions
|
|
@ -98,8 +98,15 @@
|
|||
when:
|
||||
- auditd_immutable_check.stdout == '1'
|
||||
|
||||
- name: Restart auditd
|
||||
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: Change_requires_reboot
|
||||
ansible.builtin.set_fact:
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
ansible.builtin.import_tasks:
|
||||
file: warning_facts.yml
|
||||
vars:
|
||||
warn_control_id: 'Auditd template updated, see diff output for details'
|
||||
warn_control_id: 'Auditd template updated, validate as expected'
|
||||
when:
|
||||
- rhel9cis_auditd_template_updated.changed
|
||||
- rhel9cis_auditd_file.stat.exists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue