ansible-role-fail2ban/templates/jails.conf.j2
Adrien Waksberg 5d6f5efb45 first version
2018-08-06 22:43:51 +02:00

14 lines
326 B
Django/Jinja

; {{ 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 %}