maabara/playbooks/common/secure_server.yml
2024-11-04 19:05:34 -05: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