2022-09-23 21:03:22 +00:00
|
|
|
---
|
|
|
|
- name: Restart auditd
|
|
|
|
service:
|
|
|
|
name: auditd
|
|
|
|
daemon_reload: yes
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
when: not auditd_refuse_manual_stop | bool
|
|
|
|
listen: __auditd_restart
|
2022-09-25 11:08:42 +00:00
|
|
|
become: True
|
|
|
|
become_user: root
|
2022-09-25 11:12:21 +00:00
|
|
|
|
|
|
|
- name: Reboot server
|
|
|
|
reboot:
|
|
|
|
reboot_timeout: 600
|
|
|
|
when:
|
|
|
|
- auditd_reboot_on_change | bool
|
|
|
|
- auditd_refuse_manual_stop | bool
|
|
|
|
listen: __auditd_restart
|
|
|
|
become: True
|
|
|
|
become_user: root
|