From cb3abd557431cc04aef5de1b302bcde25cd81c81 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Sat, 25 Mar 2017 14:33:23 +0100 Subject: added reload and restart handlers --- roles/install_dhcp/handlers/main.yml | 5 +++++ roles/install_dhcp/tasks/main.yml | 1 + 2 files changed, 6 insertions(+) create mode 100644 roles/install_dhcp/handlers/main.yml (limited to 'roles/install_dhcp') 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 -- cgit v1.2.3-54-g00ecf