Ansible role for installing and configuring a KEA DHCP server
Find a file
Simon Cornet 92a65d41ef
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
ci: migrate from gitlab ci to woodpecker
2026-05-15 14:31:04 +02:00
.woodpecker ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:04 +02:00
defaults style: remove trailing spaces 2025-07-15 15:15:49 +02:00
handlers fix: quotes 2025-10-25 15:08:52 +02:00
meta feat: initial commit 2025-07-15 15:14:25 +02:00
roles ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:04 +02:00
tasks fix: trailing space 2025-10-25 15:09:04 +02:00
templates fix: add id with a loop index 2025-08-18 10:29:55 +02:00
.ansible-lint ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:04 +02:00
.gitignore feat: initial commit 2025-07-15 15:14:25 +02:00
.markdownlint-cli2.jsonc ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:04 +02:00
.yamllint feat: initial commit 2025-07-15 15:14:25 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:06:22 +01:00
playbook.yaml feat: implement new role layout 2025-11-01 12:59:55 +01:00
readme.md ci: migrate from gitlab ci to woodpecker 2026-05-15 14:31:04 +02:00
renovate.json feat: initial commit 2025-07-15 15:14:25 +02:00

Ansible Role: KEA DHCP

Install and configure KEA DHCP server.

Variables

Variable Required Default Description
kea_dhcp_interface Yes eth0 Network interface to listen on
kea_dhcp_lease_rebind No 750 Lease rebind time in seconds
kea_dhcp_lease_renew No 600 Lease renewal time in seconds
kea_dhcp_lease_lifetime No 900 Lease lifetime in seconds
kea_dhcp_subnets Yes [] List of DHCP subnets to configure

Example

kea_dhcp_interface: "eth0"
kea_dhcp_lease_lifetime: "3600"
kea_dhcp_subnets:
  - name: "production-lan"
    subnet: "192.168.1.0/24"
    pool: "192.168.1.100 - 192.168.1.200"
    gateway: "192.168.1.1"
    dns: "192.168.1.10"
    reservations:
      - hostname: "server.example.com"
        ip: "192.168.1.50"
        mac: "AA:BB:CC:DD:EE:FF"