Skip to content
Commits on Source (2)
......@@ -25,6 +25,7 @@
dest: "/etc/fail2ban/filter.d/{{item}}.conf"
with_items:
- nginx-proxy
when: rev_proxy == "nginx"
notify:
- restart fail2ban
......@@ -34,6 +35,7 @@
dest: "/etc/fail2ban/jail.d/{{item}}.conf"
with_items:
- nginx-proxy
when: rev_proxy == "nginx"
notify:
- restart fail2ban
......
......@@ -4,9 +4,11 @@
src: "../templates/nginx-proxy-filter.conf.j2"
dest: "/etc/fail2ban/filter.d/nginx-proxy.conf"
notify: restart fail2ban
when: rev_proxy == "nginx"
- name: Setup jail
template:
src: "../templates/nginx-proxy-jail.conf.j2"
dest: "/etc/fail2ban/jail.d/nginx-proxy.conf"
notify: restart fail2ban
\ No newline at end of file
notify: restart fail2ban
when: rev_proxy == "nginx"
\ No newline at end of file