From 26bdefaa108cd47b9cfdbb76fe8a571d22d4eeab Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Fri, 30 Jul 2021 23:31:54 +0200 Subject: [PATCH] dhcpd: make compatible with bullseye --- roles/dhcpd/templates/default/isc-dhcp-server.j2 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/dhcpd/templates/default/isc-dhcp-server.j2 b/roles/dhcpd/templates/default/isc-dhcp-server.j2 index e756ef3..fc9997d 100644 --- a/roles/dhcpd/templates/default/isc-dhcp-server.j2 +++ b/roles/dhcpd/templates/default/isc-dhcp-server.j2 @@ -3,10 +3,12 @@ # # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). -#DHCPD_CONF=/etc/dhcp/dhcpd.conf +#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf +#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). -#DHCPD_PID=/var/run/dhcpd.pid +#DHCPDv4_PID=/var/run/dhcpd.pid +#DHCPDv6_PID=/var/run/dhcpd6.pid # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead @@ -14,4 +16,6 @@ # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". -INTERFACES="eth0" +INTERFACESv4="{{ ansible_default_ipv4['interface'] }}" +INTERFACESv6="" +INTERFACES="{{ ansible_default_ipv4['interface'] }}"