2022-09-23 21:03:22 +00:00
|
|
|
---
|
|
|
|
- name: Restart auditd
|
2024-02-18 19:39:59 +00:00
|
|
|
ansible.builtin.service:
|
2022-09-23 21:03:22 +00:00
|
|
|
name: auditd
|
2024-08-18 14:05:11 +00:00
|
|
|
daemon_reload: True
|
|
|
|
enabled: True
|
2022-09-23 21:03:22 +00:00
|
|
|
state: started
|
|
|
|
when: not auditd_refuse_manual_stop | bool
|
|
|
|
listen: __auditd_restart
|
2022-09-25 11:12:21 +00:00
|
|
|
|
|
|
|
- name: Reboot server
|
2024-02-18 19:39:59 +00:00
|
|
|
ansible.builtin.reboot:
|
2022-09-25 11:12:21 +00:00
|
|
|
reboot_timeout: 600
|
|
|
|
when:
|
|
|
|
- auditd_reboot_on_change | bool
|
|
|
|
- auditd_refuse_manual_stop | bool
|
|
|
|
listen: __auditd_restart
|