Allow lst fixed

This commit is contained in:
135
2023-10-13 12:54:11 +03:00
parent 1d34e1324c
commit 4f570339d1
2 changed files with 6 additions and 3 deletions

View File

@@ -9,4 +9,5 @@ repo_state: "{{ powerdns_recursor__state }}"
forward_lst: "{{ powerdns_recursor.forward_lst | default ([]) }}" forward_lst: "{{ powerdns_recursor.forward_lst | default ([]) }}"
# domain: auth_server_ip # domain: auth_server_ip
nta_lst: "{{ powerdns_recursor.nta_lst | default([]) }}" nta_lst: "{{ powerdns_recursor.nta_lst | default([]) }}"
allow_lst: "{{ powerdns_recursor.allow_lst | default (['127.0.0.0/8', '10.0.0.0/8']) }}"
root_cached: "{{ powerdns_recursor.root_cached | default('file') }}" root_cached: "{{ powerdns_recursor.root_cached | default('file') }}"

View File

@@ -1,6 +1,8 @@
# #
# WARNING: auto-generated by Ansible powerdns-recursor role. # WARNING: auto-generated by Ansible powerdns-recursor role.
# #
127.0.0.0/8 {% if allow_lst is defined and allow_lst | length > 0 %}
100.64.0.0/10 {% for allowed_addr in allow_lst %}
169.254.0.0/16 {{ allowed_addr }}
{% endfor %}
{% endif %}