aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-12-05 18:10:32 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2018-12-05 18:10:32 +0100
commitd0e49056dce46ad1a721b62b57ee16c43b8ea4f1 (patch)
treee07abb9287bacc121a2b0dd32561a3057b73362b
parent733fbbb1ff2fbd427ec7ef1955232150f4a9fb5a (diff)
downloadlabitat-ansible-d0e49056dce46ad1a721b62b57ee16c43b8ea4f1.tar.gz
labitat-ansible-d0e49056dce46ad1a721b62b57ee16c43b8ea4f1.tar.xz
labitat-ansible-d0e49056dce46ad1a721b62b57ee16c43b8ea4f1.zip
space_server: unbound: create /etc/resolv.conf
-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'