Fix jail options not being configurable with default values individually

This commit is contained in:
Alexander Gorelyshev
2026-06-09 20:19:22 +04:00
parent 870dbac530
commit bb291e438a
2 changed files with 21 additions and 12 deletions

View File

@@ -1,13 +1,12 @@
--- ---
fail2ban_rhel_jail_sshd: fail2ban_rhel_jail_sshd_enabled: true
enabled: true fail2ban_rhel_jail_sshd_port: ssh
port: ssh fail2ban_rhel_jail_sshd_findtime: 600
findtime: 600 fail2ban_rhel_jail_sshd_maxretry: 5
maxretry: 5 fail2ban_rhel_jail_sshd_bantime: 3600
bantime: 3600 fail2ban_rhel_jail_sshd_logpath: "%(sshd_log)s"
logpath: "%(sshd_log)s" fail2ban_rhel_jail_sshd_backend: "%(sshd_backend)s"
backend: "%(sshd_backend)s" fail2ban_rhel_jail_sshd_banaction: firewallcmd-multiport
banaction: firewallcmd-multiport fail2ban_rhel_jail_sshd_ignoreips:
ignoreips: - 127.0.0.1/8
- 127.0.0.1/8 - ::1
- ::1

View File

@@ -0,0 +1,10 @@
fail2ban_rhel_jail_sshd:
enabled: "{{ fail2ban_rhel_jail_sshd_enabled }}"
port: "{{ fail2ban_rhel_jail_sshd_port }}"
findtime: "{{ fail2ban_rhel_jail_sshd_findtime }}"
maxretry: "{{ fail2ban_rhel_jail_sshd_maxretry }}"
bantime: "{{ fail2ban_rhel_jail_sshd_bantime }}"
logpath: "{{ fail2ban_rhel_jail_sshd_logpath }}"
backend: "{{ fail2ban_rhel_jail_sshd_backend }}"
banaction: "{{ fail2ban_rhel_jail_sshd_banaction }}"
ignoreips: "{{ fail2ban_rhel_jail_sshd_ignoreips }}"