summaryrefslogtreecommitdiff
path: root/roles/install_dhcp
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-25 14:33:23 +0100
committerNiklas Yann Wettengel <niyawe@niyawe.de>2017-03-25 14:33:23 +0100
commitcb3abd557431cc04aef5de1b302bcde25cd81c81 (patch)
tree4fd7058270e4e9d87ccf9778b85e573faccb2cbd /roles/install_dhcp
parent62a74b1ed442dc8c8a1224aa8edceeb3ed9c1b84 (diff)
added reload and restart handlers
Diffstat (limited to 'roles/install_dhcp')
-rw-r--r--roles/install_dhcp/handlers/main.yml5
-rw-r--r--roles/install_dhcp/tasks/main.yml1
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/install_dhcp/handlers/main.yml b/roles/install_dhcp/handlers/main.yml
new file mode 100644
index 0000000..8b2349a
--- /dev/null
+++ b/roles/install_dhcp/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+- name: restart dhcpd4
+ systemd:
+ name: dhcpd4.service
+ state: restarted
diff --git a/roles/install_dhcp/tasks/main.yml b/roles/install_dhcp/tasks/main.yml
index 2773e30..2e85106 100644
--- a/roles/install_dhcp/tasks/main.yml
+++ b/roles/install_dhcp/tasks/main.yml
@@ -27,3 +27,4 @@
template:
src: dhcpd.conf.j2
dest: /etc/dhcpd.conf
+ notify: restart dhcpd4