ansible-playbooks/roles/dhcpd/README.md
2026-02-03 22:07:40 +01:00

557 B

dhcpd

ISC DHCP server role for Arch Linux and Debian/Ubuntu.

Requirements

  • dhcpd_interface must be defined in inventory

Configuration

See defaults/main.yml for all available variables.

Example

dhcpd_interface: "lan0"
dhcpd_subnet: "192.168.1.0"
dhcpd_range_start: "192.168.1.20"
dhcpd_range_end: "192.168.1.200"
dhcpd_gateway: "192.168.1.1"
dhcpd_dns_servers:
  - "192.168.1.2"
dhcpd_domain_name: "home.lan"

dhcpd_reservations:
  - hostname: printer
    mac: "aa:bb:cc:dd:ee:ff"
    ip: "192.168.1.10"