Commit 27757751 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

dnsmasq: make bind interface for dnsmasq configurable

parent e7dd6ebf
Pipeline #3715 passed with stage
in 57 seconds
......@@ -3,6 +3,7 @@
dnsmasq_user: dnsmasq
dnsmasq_group: dnsmasq
dnsmasq_bind_interface: true
dhcp_ranges: []
dhcp_fixed_hosts: []
......
......@@ -8,7 +8,9 @@ port=0
user={{dnsmasq_user}}
group={{dnsmasq_group}}
{% if dnsmasq_bind_interface %}
interface={{ansible_default_ipv4["interface"]}}
{% endif %}
{% for dhcp_range in dhcp_ranges %}
dhcp-range={% if dhcp_range.tag is defined %}set:{{dhcp_range.tag}},{% endif %}{{dhcp_range.min_addr}},{% if dhcp_range.static is defined and dhcp_range.static %}static{% else %}{{dhcp_range.max_addr}}{% endif %},{% if dhcp_range.netmask is defined %}{{dhcp_range.netmask}},{% if dhcp_range.broadcast is defined %}{{dhcp_range.broadcast}},{% endif %}{% endif %}{{dhcp_range.lease_time|default(dhcp_default_lease_time)}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment