[CORD-2161]
Fix DNS server startup issues with unbound/nsd
Change-Id: I4f1a00da40d10e093077e22bdf95643e11f34836
diff --git a/roles/dns-nsd/handlers/main.yml b/roles/dns-nsd/handlers/main.yml
index 5d51273..9822151 100644
--- a/roles/dns-nsd/handlers/main.yml
+++ b/roles/dns-nsd/handlers/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,12 +13,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
-#file: roles/dns-nsd/handlers/main.yml
+# dns-nsd/handlers/main.yml
- name: reload-nsd
- service: name=nsd state=reloaded
+ service:
+ name: nsd
+ enabled: yes
+ state: reloaded
- name: restart-nsd
- service: name=nsd state=restarted
+ service:
+ name: nsd
+ enabled: yes
+ state: restarted
+