ansible/roles/kea/tasks/main.yml

18 lines
383 B
YAML

---
- name: Install the kea dhcp server
apt:
name:
- kea-dhcp4-server
- kea-dhcp-ddns-server
- name: Configure the kea dhcp server
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