# Disable DNS Server. port=0 {% if dhcp_proxy == true %} # We're DHCP proxying on the network of the homelab host dhcp-range={{ ansible_default_ipv4.address }},proxy pxe-service=X86-64_EFI, "Boot From Network, (UEFI)", grubx64.efi {% else %} # We're DHCP configuring on this range dhcp-range={{ ansible_default_ipv4.network | ansible.netcommon.ipmath(1) }},{{ ansible_default_ipv4.broadcast | ansible.netcommon.ipmath(-1) }},{{ ansible_default_ipv4.netmask }},12h dhcp-option=3,{{ ansible_default_ipv4.gateway }} # Match Arch Types efi x86 and x64 dhcp-match=set:efi-x86_64,option:client-arch,7 dhcp-match=set:efi-x86_64,option:client-arch,9 # Set the Boot file based on the tag from above dhcp-boot=tag:efi-x86_64,grubx64.efi {% endif %} # Log DHCP queries to stdout log-queries log-dhcp log-facility=- # Enable TFTP server enable-tftp tftp-root=/tftp