ansible-role-fail2ban/templates/jails.conf.j2

15 lines
326 B
Text
Raw Permalink Normal View History

2018-08-05 20:25:51 +00:00
; {{ ansible_managed }}
{% for jail in fail2ban_jails %}
[{{ jail.name }}]
enabled = true
logpath = {{ jail.logpath }}
port = {{ jail.port }}
filter = {{ jail.filter }}
{% if jail.additional is defined %}
{% for option, value in jail.additional.iteritems() %}
{{ option }} = {{ value }}
{% endfor %}
{% endif %}
{% endfor %}