2017-01-21 17:55:08 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install dhcp server
|
2017-07-07 07:48:21 +02:00
|
|
|
apt: name=isc-dhcp-server
|
2017-01-21 17:55:08 +01:00
|
|
|
|
|
|
|
- name: Configure dhcp server
|
2017-07-07 07:48:21 +02:00
|
|
|
template: src={{ item }}.j2 dest=/etc/{{ item }}
|
2017-01-21 17:55:08 +01:00
|
|
|
with_items:
|
2017-07-07 07:48:21 +02:00
|
|
|
- default/isc-dhcp-server
|
2017-01-21 17:55:08 +01:00
|
|
|
- dhcp/dhcpd.conf
|
2017-07-07 07:48:21 +02:00
|
|
|
notify: Restart isc-dhcp-server
|
2017-01-21 17:55:08 +01:00
|
|
|
|
|
|
|
- name: Start the dhcp server
|
|
|
|
service: name=isc-dhcp-server state=started enabled=yes
|