added roles for NSD and Unbound dns servers
diff --git a/roles/dns-unbound/tasks/main.yml b/roles/dns-unbound/tasks/main.yml
new file mode 100644
index 0000000..2666538
--- /dev/null
+++ b/roles/dns-unbound/tasks/main.yml
@@ -0,0 +1,19 @@
+---
+#file: roles/dns-unbound/tasks/main.yml
+
+# OS specific vars
+- include_vars: "{{ ansible_os_family }}.yml"
+
+# Debian specific installation
+- include: unbound-Debian.yml
+ when: ansible_os_family == 'Debian'
+
+- name: create unbound.conf from template
+ template:
+ src=unbound.conf.j2
+ dest={{ unbound_conf }}
+ mode=0644 owner=root group={{ unbound_group }}
+ # validate='unbound-checkconf %s' - can't use, checks path, not just config.
+ notify:
+ - restart-unbound
+
diff --git a/roles/dns-unbound/tasks/unbound-Debian.yml b/roles/dns-unbound/tasks/unbound-Debian.yml
new file mode 100644
index 0000000..da0254f
--- /dev/null
+++ b/roles/dns-unbound/tasks/unbound-Debian.yml
@@ -0,0 +1,9 @@
+---
+
+- name: Install unbound
+ apt:
+ name={{ item }}
+ state=present
+ with_items:
+ - unbound
+