Prototype a role for installing fail2ban on RHEL 9+

This commit is contained in:
Alexander Gorelyshev
2026-06-08 20:05:29 +04:00
parent fad0cb0abb
commit deaeb1f79e
9 changed files with 178 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[sshd]
enabled = {{ fail2ban_rhel_jail_sshd.enabled | ternary('true', 'false') }}
port = {{ fail2ban_rhel_jail_sshd.port }}
logpath = {{ fail2ban_rhel_jail_sshd.logpath }}
backend = {{ fail2ban_rhel_jail_sshd.backend }}
banaction = {{ fail2ban_rhel_jail_sshd.banaction }}
findtime = {{ fail2ban_rhel_jail_sshd.findtime }}
maxretry = {{ fail2ban_rhel_jail_sshd.maxretry }}
bantime = {{ fail2ban_rhel_jail_sshd.bantime }}
ignoreip = {{ fail2ban_rhel.ignoreips | default([]) | join(' ') }}