Add only required reverse zones for dna gw hosts
This commit is contained in:
parent
1269427fb2
commit
05b4c3a9f4
1 changed files with 10 additions and 2 deletions
|
@ -34,8 +34,16 @@ network_ether_interfaces:
|
||||||
proto: none
|
proto: none
|
||||||
|
|
||||||
unbound_zones:
|
unbound_zones:
|
||||||
- 20.172.in-addr.arpa
|
- 144-28.96.16.37.in-addr.arpa
|
||||||
- home.foo.sh
|
- foo.sh
|
||||||
|
- >-
|
||||||
|
{% set reverse = intnet | ansible.utils.ipaddr('network') | ansible.utils.ipaddr('revdns') -%}
|
||||||
|
{% if intnet | ansible.utils.ipaddr('prefix') < 24 -%}
|
||||||
|
{{ reverse[:-1] | split('.', 2) | last -}}
|
||||||
|
{% else -%}
|
||||||
|
{{ reverse[:-1] | split('.', 1) | last -}}
|
||||||
|
{% endif -%}
|
||||||
|
- "{{ inventory_hostname.split('.')[1:] | join('.') }}"
|
||||||
|
|
||||||
# use custom firewall config
|
# use custom firewall config
|
||||||
firewall_src: pf.conf.gw_dna.j2
|
firewall_src: pf.conf.gw_dna.j2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue