2024-02-12 15:57:43 +00:00
|
|
|
---
|
2024-02-14 13:50:00 +00:00
|
|
|
### COMMON #####################################################################
|
|
|
|
hostname: 'test-playbook'
|
|
|
|
|
|
|
|
hosts:
|
|
|
|
- ip: 127.0.0.1
|
|
|
|
name: localhost
|
2024-02-14 14:50:02 +00:00
|
|
|
- ip: 127.0.1.1
|
|
|
|
name: test-playbook.lab.dc.verdnatura.es test-playbook
|
2024-02-14 15:35:51 +00:00
|
|
|
|
2024-02-14 16:15:54 +00:00
|
|
|
domain_name: lab.dc.verdnatura.es
|
|
|
|
search_name: lab.dc.verdnatura.es
|
2024-02-14 15:35:51 +00:00
|
|
|
resolvs:
|
|
|
|
- ip: 10.0.0.4
|
|
|
|
- ip: 10.0.0.5
|
2024-02-14 13:50:00 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
### FAIL2BAN ####################################################################
|
|
|
|
fail2ban_times:
|
|
|
|
bantime: "604800"
|
|
|
|
maxretry: "4"
|
|
|
|
findtime: "604800"
|
|
|
|
fail2ban_jails:
|
2024-02-12 15:57:43 +00:00
|
|
|
- name: sshd
|
|
|
|
enabled: true
|
|
|
|
port: ['22']
|
|
|
|
filter: sshd
|
|
|
|
logpath: "%(sshd_log)s"
|
2024-02-14 13:50:00 +00:00
|
|
|
backend: "%(sshd_backend)s"
|
|
|
|
################################################################################
|