X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/95b82708df05b1794e7991904899659f2ddc40cd..80a1cc546b99c8380942f14d7daa594a3c4a5615:/roles/unbound/tasks/main.yml?ds=sidebyside diff --git a/roles/unbound/tasks/main.yml b/roles/unbound/tasks/main.yml index 988517f..f3aacac 100644 --- a/roles/unbound/tasks/main.yml +++ b/roles/unbound/tasks/main.yml @@ -32,10 +32,14 @@ src: files/dhclient.conf - name: configure system DNS copy: - dest: /etc/resolv.conf - content: "nameserver 127.0.0.2\n" + dest: "{{ item }}" + content: "nameserver 127.0.0.2\noptions trust-ad\noptions edns0\n" + loop: + - /etc/resolv.conf.unbound + - /etc/resolv.conf # some providers need extra hacks to make our DNS persistent - name: install DNS-fix cronjob template: dest: /etc/cron.hourly/fix-dns src: templates/fix-dns + mode: +x