xoxys.auditd/handlers/main.yml

18 lines
388 B
YAML
Raw Permalink Normal View History

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
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
- name: Reboot server
2024-02-18 19:39:59 +00:00
ansible.builtin.reboot:
reboot_timeout: 600
when:
- auditd_reboot_on_change | bool
- auditd_refuse_manual_stop | bool
listen: __auditd_restart