fail2ban: fix "ignoreip" update
This commit is contained in:
parent
42ec5d62c8
commit
df308b0396
|
@ -25,6 +25,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* evocheck: update evocheck.sh for source install
|
* evocheck: update evocheck.sh for source install
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
* fail2ban: fix "ignoreip" update
|
||||||
* metricbeat: fix username/password replacement
|
* metricbeat: fix username/password replacement
|
||||||
* nagios-nrpe: check_process now return the error code (making the check more usefull than /bin/true)
|
* nagios-nrpe: check_process now return the error code (making the check more usefull than /bin/true)
|
||||||
* nginx: Munin url config is now a template to insert the server-status prefix
|
* nginx: Munin url config is now a template to insert the server-status prefix
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- set_fact:
|
||||||
|
fail2ban_ignore_ips: "{{ ['127.0.0.1/8'] | union(fail2ban_default_ignore_ips) | union(fail2ban_additional_ignore_ips) | unique }}"
|
||||||
|
|
||||||
- name: Update ignoreips lists
|
- name: Update ignoreips lists
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: /etc/fail2ban/jail.local
|
dest: /etc/fail2ban/jail.local
|
||||||
section: "[DEFAULT]"
|
section: "DEFAULT"
|
||||||
option: "ignoreips"
|
option: "ignoreip"
|
||||||
value: "{{ fail2ban_ignore_ips | join(' ') }}"
|
value: "{{ fail2ban_ignore_ips | join(' ') }}"
|
||||||
notify: restart fail2ban
|
notify: restart fail2ban
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -16,7 +16,9 @@
|
||||||
- fail2ban
|
- fail2ban
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
fail2ban_ignore_ips: "{{ fail2ban_default_ignore_ips | union(fail2ban_additional_ignore_ips) | unique }}"
|
fail2ban_ignore_ips: "{{ ['127.0.0.1/8'] | union(fail2ban_default_ignore_ips) | union(fail2ban_additional_ignore_ips) | unique }}"
|
||||||
|
tags:
|
||||||
|
- fail2ban
|
||||||
|
|
||||||
- name: local jail is installed
|
- name: local jail is installed
|
||||||
template:
|
template:
|
||||||
|
|
Loading…
Reference in a new issue