Parameterize most of the LAN config

So that it adapts to e.g. 192.168.50/24 instead of 192.168.0/24
This commit is contained in:
Jukka Nousiainen 2021-07-25 00:29:25 +03:00 committed by Andreas B. Mundt
parent 53b54edd18
commit 1a9b3ba2e6
5 changed files with 21 additions and 8 deletions

View file

@ -0,0 +1,11 @@
$TTL 500
@ IN SOA {{ ansible_fqdn }}. root.{{ ansible_domain }}. (
1 ; Serial
3600 ; Refresh
1800 ; Retry
720000 ; Expire
6400 ) ; Negative Cache TTL
;
@ NS {{ ansible_fqdn }}.
MX 10 {{ ansible_fqdn }}.
{{ ipaddr_lan | ipaddr("address") | regex_replace("^.*\.(.+$)", "\\1") }} PTR {{ ansible_fqdn }}.