make unbound its own role
[ansible.git] / roles / unbound / tasks / main.yml
similarity index 89%
rename from roles/email/tasks/unbound.yml
rename to roles/unbound/tasks/main.yml
index 0fe643cbfe22a7f85419c76d7c1dada8dab2d99b..c53cecb2312a71025e1a2f8096ab93fed7f3cb91 100644 (file)
@@ -6,14 +6,14 @@
   register: unbound_config
   copy:
     dest: /etc/unbound/unbound.conf.d/listen.conf
-    src: files/unbound/listen.conf
+    src: files/listen.conf
 - name: configure systemd (create dir)
   file: path=/etc/systemd/system/unbound.service.d state=directory
 - name: configure systemd (tweak unbound)
   register: unbound_systemd
   copy:
     dest: /etc/systemd/system/unbound.service.d/override.conf
-    src: files/unbound/unbound.service.override
+    src: files/unbound.service.override
 - name: reload systemd
   when: unbound_systemd.changed
   command: systemctl daemon-reload
@@ -29,7 +29,7 @@
   when: dhclient.stat.exists == True
   copy:
     dest: /etc/dhcp/dhclient.conf
-    src: files/unbound/dhclient.conf
+    src: files/dhclient.conf
 - name: configure system DNS
   copy:
     dest: /etc/resolv.conf