This commit is contained in:
2024-09-03 19:13:07 +03:00
parent 7338c9dbfb
commit 2eb06bdb12
5 changed files with 213 additions and 38 deletions

View File

@@ -1,2 +1,3 @@
# MANAGED BY ANSIBLE DONT TOUCH BY HANDS #
[main]
dns=dnsmasq

View File

@@ -1,10 +1,19 @@
interface={{ wifi_int.stdout_lines | first }}
dhcp-range={{ range_start }},{{ range_end }},2h
# MANAGED BY ANSIBLE DONT TOUCH BY HANDS #
{% for interface in without_lte.stdout_lines %}
interface={{ interface }}
{% endfor %}
{% for nameserver in nameservers %}
server={{ nameserver }}
{% endfor %}
dhcp-range={{ range_start }},{{ range_end }},12h
dhcp-option=1,{{ netmask }}
dhcp-option=2,{{ lease_time }} # время аренды в секундах
dhcp-option=3,{{ wifi_int_ip }} # шлюз по умолчанию
dhcp-option=6,{{ dns1 }}
dhcp-authoritative
# Static
{% for mac_ip in static %}
dhcp-host={{ mac_ip }}
{% endfor %}
log-queries
#log-dhcp
log-facility=/var/log/dnsmasq.log
log-facility=/var/log/dnsmasq.log