ansible/roles/isc-dhcp-server/tasks/main.yml
2019-05-04 10:54:51 +02:00

21 lines
423 B
YAML

---
- name: Install isc-dhcp-server
apt:
update_cache: true
name: isc-dhcp-server
state: present
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Configure isc-dhcp-server
template:
src: dhcp/dhcpd.conf.j2
dest: /etc/dhcp/dhcpd.conf
mode: 0600
- name: Ensure that isc-dhcp-server is started
systemd:
name: isc-dhcp-server
state: started
enabled: true