playbook to install security components
This commit is contained in:
parent
e6dd4d70a0
commit
067dde6db8
15
playbooks/secure_server.yml
Normal file
15
playbooks/secure_server.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user