aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server')
-rw-r--r--roles/space_server/files/resolv.conf2
-rw-r--r--roles/space_server/tasks/unbound.yml8
2 files changed, 10 insertions, 0 deletions
diff --git a/roles/space_server/files/resolv.conf b/roles/space_server/files/resolv.conf
new file mode 100644
index 0000000..dd42aca
--- /dev/null
+++ b/roles/space_server/files/resolv.conf
@@ -0,0 +1,2 @@
+nameserver 127.0.0.1
+nameserver ::1
diff --git a/roles/space_server/tasks/unbound.yml b/roles/space_server/tasks/unbound.yml
index 9b83c98..0de4c78 100644
--- a/roles/space_server/tasks/unbound.yml
+++ b/roles/space_server/tasks/unbound.yml
@@ -1,4 +1,12 @@
---
+- name: Create /etc/resolv.conf
+ copy:
+ dest: '/etc/resolv.conf'
+ src: resolv.conf
+ owner: root
+ group: root
+ mode: 0644
+
- name: Configure unbound
template:
dest: '/etc/unbound/unbound.conf'