dhcpd: Make config more readable
This commit is contained in:
parent
973854dc8d
commit
4846e3a284
1 changed files with 7 additions and 1 deletions
|
@ -65,7 +65,13 @@ subnet {{ intnet | ansible.utils.ipaddr('network') }} netmask {{ intnet | ansibl
|
||||||
option routers {{ intnet | ansible.utils.ipaddr(1) | ansible.utils.ipaddr('address')}};
|
option routers {{ intnet | ansible.utils.ipaddr(1) | ansible.utils.ipaddr('address')}};
|
||||||
|
|
||||||
option domain-name "{{ intdomain }}";
|
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') }};
|
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')
|
||||||
|
] | join(', ')
|
||||||
|
}};
|
||||||
use-host-decl-names on;
|
use-host-decl-names on;
|
||||||
{% if network_interfaces[0].vlan == 30 %}
|
{% if network_interfaces[0].vlan == 30 %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue