forked from evolix/ansible-roles
[Cleanup] fail2ban
Name all tasks. It would seems that the task creating the `fail2ban_ignore_ips` fact for the whitelist exist in both main.yml and ip_whitelist.yml, one of them might be superfluous.
This commit is contained in:
parent
63a0894906
commit
440bec2feb
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- set_fact:
|
- name: "Define the whitelist from variables"
|
||||||
|
set_fact:
|
||||||
fail2ban_ignore_ips: "{{ ['127.0.0.1/8'] | union(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 }}"
|
||||||
|
|
||||||
- name: Update ignoreips lists
|
- name: Update ignoreips lists
|
||||||
|
@ -12,4 +13,4 @@
|
||||||
notify: restart fail2ban
|
notify: restart fail2ban
|
||||||
tags:
|
tags:
|
||||||
- fail2ban
|
- fail2ban
|
||||||
- ips
|
- ips
|
||||||
|
|
|
@ -15,7 +15,8 @@
|
||||||
tags:
|
tags:
|
||||||
- fail2ban
|
- fail2ban
|
||||||
|
|
||||||
- set_fact:
|
- name: "Define ip whitelist from variables"
|
||||||
|
set_fact:
|
||||||
fail2ban_ignore_ips: "{{ ['127.0.0.1/8'] | union(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:
|
tags:
|
||||||
- fail2ban
|
- fail2ban
|
||||||
|
|
Loading…
Reference in a new issue