forked from infra/ansible
39 lines
1001 B
YAML
39 lines
1001 B
YAML
---
|
|
|
|
- name: Install the kea dhcp server
|
|
apt:
|
|
name:
|
|
- kea-ctrl-agent
|
|
- kea-dhcp4-server
|
|
- kea-dhcp-ddns-server
|
|
|
|
- name: Configure the kea dhcp4 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 dhcp4 server
|
|
service: name=kea-dhcp4-server state=started enabled=yes
|
|
|
|
- name: Configure the kea dhcp-ddns server
|
|
template:
|
|
src: kea/kea-dhcp-ddns.conf.j2
|
|
dest: /etc/kea/kea-dhcp-ddns.conf
|
|
# validate: kea-dhcp-ddns -t %s
|
|
notify: Restart kea-dhcp-ddns-server
|
|
|
|
- name: Start the kea dhcp-ddns server
|
|
service: name=kea-dhcp-ddns-server state=started enabled=yes
|
|
|
|
- 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
|