You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ffmyk-ansible/roles/install_dhcp/templates/dhcpd.conf.j2

21 lines
432 B
Plaintext

default-lease-time 600;
max-lease-time 900;
authoritative;
log-facility local7;
7 years ago
{% for site in sites %}
subnet {{ site.dhcp_subnet }} netmask {{ site.dhcp_netmask }} {
range {{ site.dhcp_start }} {{ site.dhcp_end }};
7 years ago
option routers {{ site.bat_ipv4 }};
option domain-name-servers {{ site.bat_ipv4 }};
}
7 years ago
{% endfor %}
subnet {{ ansible_default_ipv4['address'] }} netmask 255.255.255.255 {
}
7 years ago
#include "/etc/dhcpd.hosts.conf";