Ansible role for installing and configuring a KEA DHCP server
- Jinja 100%
|
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
|
||
|---|---|---|
| .woodpecker | ||
| defaults | ||
| handlers | ||
| meta | ||
| roles | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .gitignore | ||
| .markdownlint-cli2.jsonc | ||
| .yamllint | ||
| AGENTS.md | ||
| playbook.yaml | ||
| readme.md | ||
| renovate.json | ||
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"