dhcpd: Add dynamic range for lan.foo.sh network
This commit is contained in:
parent
4b4ba7a814
commit
97c9467b89
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ subnet {{ intnet | ansible.utils.ipaddr('network') }} netmask {{ intnet | ansibl
|
|||
option domain-name "{{ intdomain }}";
|
||||
option domain-name-servers {{ intnet | ansible.utils.ipaddr(10) | ansible.utils.ipaddr('address') }}, {{ intnet | ansible.utils.ipaddr(11) | ansible.utils.ipaddr('address') }}, {{ intnet | ansible.utils.ipaddr(12) | ansible.utils.ipaddr('address') }};
|
||||
use-host-decl-names on;
|
||||
{% if network_interfaces[0].vlan == 30 %}
|
||||
|
||||
range {{ intnet | ansible.utils.ipaddr(100) | ansible.utils.ipaddr('address') }} {{ intnet | ansible.utils.ipaddr(200) | ansible.utils.ipaddr('address') }};
|
||||
{% endif %}
|
||||
}
|
||||
|
||||
{% for hostname in hostvars %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue