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:
|
when:
|
||||||
- auditd_immutable_check.stdout == '1'
|
- auditd_immutable_check.stdout == '1'
|
||||||
|
|
||||||
- name: Restart auditd
|
- name: Stop auditd process
|
||||||
ansible.builtin.shell: service auditd restart
|
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
|
- name: Change_requires_reboot
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
ansible.builtin.import_tasks:
|
ansible.builtin.import_tasks:
|
||||||
file: warning_facts.yml
|
file: warning_facts.yml
|
||||||
vars:
|
vars:
|
||||||
warn_control_id: 'Auditd template updated, see diff output for details'
|
warn_control_id: 'Auditd template updated, validate as expected'
|
||||||
when:
|
when:
|
||||||
- rhel9cis_auditd_template_updated.changed
|
- rhel9cis_auditd_template_updated.changed
|
||||||
- rhel9cis_auditd_file.stat.exists
|
- rhel9cis_auditd_file.stat.exists
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue