1
0
forked from infra/ansible
infra/roles/dhcpd/tasks/main.yml
2020-02-03 19:46:31 +01:00

15 lines
322 B
YAML

---
- name: Install dhcp server
apt: name=isc-dhcp-server
- name: Configure dhcp server
template: src={{ item }}.j2 dest=/etc/{{ item }}
loop:
- default/isc-dhcp-server
- dhcp/dhcpd.conf
notify: Restart isc-dhcp-server
- name: Start the dhcp server
service: name=isc-dhcp-server state=started enabled=yes