ansible-dhcpd/tasks/main.yml
2015-03-27 10:50:21 +01:00

20 lines
409 B
YAML

---
- name: Install DHCP packages
apt:
name: '{{ item }}'
state: 'present'
install_recommends: False
with_items: [ 'isc-dhcp-server' ]
- name: Configure DHCP server
template:
src: '{{ item }}.j2'
dest: '/{{ item }}'
owner: 'root'
group: 'root'
mode: '0644'
with_items: [ 'etc/default/isc-dhcp-server', 'etc/dhcp/dhcpd.conf' ]
notify: [ 'Restart isc-dhcp-server' ]