diff options
Diffstat (limited to 'roles/install_dhcp')
-rw-r--r-- | roles/install_dhcp/handlers/main.yml | 5 | ||||
-rw-r--r-- | roles/install_dhcp/tasks/main.yml | 1 |
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 |