2024-04-19 15:10:44 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install the kea dhcp server
|
|
|
|
apt:
|
|
|
|
name:
|
2024-05-13 18:12:25 +02:00
|
|
|
- kea-ctrl-agent
|
2024-04-19 15:10:44 +02:00
|
|
|
- kea-dhcp4-server
|
|
|
|
- kea-dhcp-ddns-server
|
|
|
|
|
2024-05-13 18:12:25 +02:00
|
|
|
- name: Configure the kea dhcp4 server
|
2024-04-19 15:10:44 +02:00
|
|
|
template:
|
|
|
|
src: kea/kea-dhcp4.conf.j2
|
|
|
|
dest: /etc/kea/kea-dhcp4.conf
|
|
|
|
# validate: kea-dhcp4 -t %s
|
|
|
|
notify: Restart kea-dhcp4-server
|
|
|
|
|
|
|
|
- name: Start the kea dhcp server
|
|
|
|
service: name=kea-dhcp4-server state=started enabled=yes
|
2024-05-13 18:12:25 +02:00
|
|
|
|
|
|
|
- name: Configure the kea control agent
|
|
|
|
template:
|
|
|
|
src: kea/kea-ctrl-agent.conf.j2
|
|
|
|
dest: /etc/kea/kea-ctrl-agent.conf
|
|
|
|
# validate: kea-ctrl-agent -t %s
|
|
|
|
notify: Restart kea-ctrl-agent
|
|
|
|
|
|
|
|
- name: Start the kea control agent
|
|
|
|
service: name=kea-ctrl-agent state=started enabled=yes
|