Skip to content
Snippets Groups Projects
Commit d2176be4 authored by Maxime Bombar's avatar Maxime Bombar
Browse files

[dhcp] Make use of handlers to restart the server only when needed

parent a37ced87
No related branches found
No related tags found
Loading
---
- name: restart dhcp server
systemd:
name: isc-dhcp-server
state: restarted
enabled: true
......@@ -13,9 +13,5 @@
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
notify:
- restart dhcp server
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment