diff --git a/defaults/main.yml b/defaults/main.yml index de90538..7092798 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -50,9 +50,19 @@ dhcpd_relay_interfaces: [] dhcpd_relay_options: '-4' -# ---------------------------------------- -# Global ISC DHCP Server configuration -# ---------------------------------------- +# --------------------------------- +# ISC DHCP Server configuration +# --------------------------------- + +# .. envvar:: dhcpd_server_options +# +# dhcpd(8) options +dhcpd_server_options: '-4' + + +# --------------------------- +# DHCP main configuration +# --------------------------- # .. envvar:: dhcpd_authoritative # diff --git a/templates/etc/default/isc-dhcp-server.j2 b/templates/etc/default/isc-dhcp-server.j2 index 430430e..69347d7 100644 --- a/templates/etc/default/isc-dhcp-server.j2 +++ b/templates/etc/default/isc-dhcp-server.j2 @@ -16,7 +16,7 @@ # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead -#OPTIONS="" +OPTIONS="{{ dhcpd_server_options }}" # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1".