ansible/roles/dhcpd/tasks/main.yml

12 lines
284 B
YAML
Raw Normal View History

2017-03-27 17:42:48 +02:00
---
- name: Install dhcp server
apt: name=isc-dhcp-server state=latest
- name: Configure dhcp server
template: src=dhcpd.conf.j2 dest=/etc/dhcp/dhcpd.conf
notify: Restart isc-dhcp-server
- name: Start the dhcp server
service: name=isc-dhcp-server state=started enabled=yes