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:
parent
53b54edd18
commit
1a9b3ba2e6
5 changed files with 21 additions and 8 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
## LAN IP address range:
|
||||
ipaddr_lan: 192.168.0.10/24
|
||||
ipaddr_lan_threeoct: {{ ipaddr_lan.split('.')[0:3] | join('.')}}
|
||||
ipaddr_lan_ptr: {{ ipaddr_lan | ansible.netcommon.ipaddr('revdns').split('.')[1:-1] | join('.') }}
|
||||
dhcp_range: 192.168.0.50,192.168.0.99,2h
|
||||
|
||||
di_dist: "{{ ansible_distribution_release }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue