playbook to install security components

This commit is contained in:
Ibrahim Mkusa 2024-09-07 19:04:29 -04:00
parent e6dd4d70a0
commit 067dde6db8

View File

@ -0,0 +1,15 @@
---
- 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