diff --git a/playbooks/secure_server.yml b/playbooks/secure_server.yml new file mode 100644 index 0000000..c3463cb --- /dev/null +++ b/playbooks/secure_server.yml @@ -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