maabara/playbooks/secure_server.yml
2024-09-07 19:04:29 -04:00

16 lines
296 B
YAML

---
- name: installs setups security components for server
hosts: aws
become: true
tasks:
- name: install fail2ban
apt:
name: fail2ban
state: latest
- name: enable the service
systemd:
name: fail2ban
state: started
enabled: true