xoxys.auditd/handlers/main.yml
Robert Kaussow cffe9f7dc0
All checks were successful
continuous-integration/drone/push Build is passing
feat: add option to reboot host automatically
2022-09-25 13:12:21 +02:00

22 lines
424 B
YAML

---
- name: Restart auditd
service:
name: auditd
daemon_reload: yes
enabled: yes
state: started
when: not auditd_refuse_manual_stop | bool
listen: __auditd_restart
become: True
become_user: root
- 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