Fix jail options not being configurable with default values individually
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
10
roles/fail2ban_rhel/vars/main.yml
Normal file
10
roles/fail2ban_rhel/vars/main.yml
Normal 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 }}"
|
||||||
Reference in New Issue
Block a user