CIS + inital
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# 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
|
||||
Reference in New Issue
Block a user