aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2021-01-22 22:17:07 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2021-01-22 22:17:07 +0100
commitae380ddbe21e05be75b924a69b8e2861f4954a8f (patch)
tree10044795ee35a446ef06f370914041d516a147cc
parentd43cdbc412d6548447d3d4c6238fc56c99e09d98 (diff)
downloadlabitat-ansible-ae380ddbe21e05be75b924a69b8e2861f4954a8f.tar.gz
labitat-ansible-ae380ddbe21e05be75b924a69b8e2861f4954a8f.tar.xz
labitat-ansible-ae380ddbe21e05be75b924a69b8e2861f4954a8f.zip
space_server: named: add trust-ad option to resolv.conf
-rw-r--r--roles/space_server/files/resolv.conf1
-rw-r--r--roles/space_server/tasks/named.yml4
2 files changed, 3 insertions, 2 deletions
diff --git a/roles/space_server/files/resolv.conf b/roles/space_server/files/resolv.conf
index dd42aca..44286ba 100644
--- a/roles/space_server/files/resolv.conf
+++ b/roles/space_server/files/resolv.conf
@@ -1,2 +1,3 @@
nameserver 127.0.0.1
nameserver ::1
+options edns0 trust-ad
diff --git a/roles/space_server/tasks/named.yml b/roles/space_server/tasks/named.yml
index 93f230f..ac9571f 100644
--- a/roles/space_server/tasks/named.yml
+++ b/roles/space_server/tasks/named.yml
@@ -69,8 +69,8 @@
- name: Use our own resolver
copy:
- dest: /etc/resolv.conf
- content: "nameserver 127.0.0.1\nnameserver ::1\noptions edns0\n"
+ dest: '/etc/resolv.conf'
+ src: resolv.conf
owner: root
group: root
mode: 0644