Initial commit of NSD ansible role

Change-Id: I97c6455f2513604b86156017b5b7b1d769e7bbc0
diff --git a/templates/nsd.conf.j2 b/templates/nsd.conf.j2
new file mode 100644
index 0000000..ff5b39f
--- /dev/null
+++ b/templates/nsd.conf.j2
@@ -0,0 +1,31 @@
+{#
+SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
+SPDX-License-Identifier: Apache-2.0
+#}
+# nsd templates/nsd.conf.j2 - {{ ansible_managed }}
+
+server:
+  hide-version: yes
+
+## bind to a specific address/port
+  ip-address: {{ nsd_ip4 }}
+  ip4-only: yes
+  port: {{ nsd_port }}
+
+  server-count: 1
+  zonesdir: {{ nsd_zones_dir }}
+
+remote-control:
+  control-enable: yes
+
+# zonefiles to load
+{% for key, value in dns_zones.items() %}
+zone:
+  name: {{ key }}
+  zonefile: {{ key }}.forward
+
+zone:
+  name: {{ value.ip_range | unbound_revdns }}
+  zonefile: {{ key }}.reverse
+
+{% endfor %}