Merge "Fix dnsmasq_router usage"
This commit is contained in:
commit
b3b36e2a99
|
@ -71,11 +71,11 @@ dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}
|
|||
|
||||
# Override the default route supplied by dnsmasq, which assumes the
|
||||
# router is the same machine as the one running dnsmasq.
|
||||
{% if dnsmasq_router is defined %}
|
||||
{% if dnsmasq_router | bool == false %}
|
||||
dhcp-option=3
|
||||
{% else %}
|
||||
{% if not (dnsmasq_router | default(True) | bool) %}
|
||||
{% if dnsmasq_router | ipaddr %}
|
||||
dhcp-option=3,{{dnsmasq_router}}
|
||||
{% else %}
|
||||
dhcp-option=3
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue