17 lines
341 B
YAML
17 lines
341 B
YAML
---
|
|
# System Hardening Role - Handlers
|
|
|
|
- name: restart sshd
|
|
ansible.builtin.systemd:
|
|
name: sshd
|
|
state: restarted
|
|
|
|
- name: restart fail2ban
|
|
ansible.builtin.systemd:
|
|
name: fail2ban
|
|
state: restarted
|
|
|
|
- name: restart auditd
|
|
ansible.builtin.command: service auditd restart
|
|
# Note: auditd requires special restart command
|