From 067dde6db895cf172d75fcf42fcd4d0804c9d3ed Mon Sep 17 00:00:00 2001 From: Ibrahim Mkusa Date: Sat, 7 Sep 2024 19:04:29 -0400 Subject: [PATCH] playbook to install security components --- playbooks/secure_server.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 playbooks/secure_server.yml 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