[CORD-2161]
Fix DNS server startup issues with unbound/nsd
Change-Id: I4f1a00da40d10e093077e22bdf95643e11f34836
(cherry picked from commit 503aabf6a2827ba4be820d33e1c30b5ae188f536)
diff --git a/roles/dns-unbound/handlers/main.yml b/roles/dns-unbound/handlers/main.yml
index 36a3cc0..858b7c0 100644
--- a/roles/dns-unbound/handlers/main.yml
+++ b/roles/dns-unbound/handlers/main.yml
@@ -1,4 +1,4 @@
-
+---
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,9 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
----
-#file: roles/dns-unbound/handlers/main.yml
+# dns-unbound/handlers/main.yml
- name: restart-unbound
- service: name=unbound state=restarted
+ service:
+ name: unbound
+ enabled: yes
+ state: restarted
+