mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-23 05:33:25 +02:00
17 lines
349 B
Django/Jinja
17 lines
349 B
Django/Jinja
name: fws/trusted_ip
|
|
description: "Whitelist events from trusted ip"
|
|
whitelist:
|
|
reason: "trusted ip"
|
|
ip:
|
|
{% for ip in trusted_ip | default([]) %}
|
|
{% if ip is not search('/\d+$') %}
|
|
- "{{ ip }}"
|
|
{% endif %}
|
|
{% endfor %}
|
|
cidr:
|
|
{% for ip in trusted_ip | default([]) %}
|
|
{% if ip is search('/\d+$') %}
|
|
- "{{ ip }}"
|
|
{% endif %}
|
|
{% endfor %}
|