From 7a6d602dcb87f347eb5e8cd6d53438a033d7b35f Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Wed, 20 Jan 2016 18:03:11 -0800 Subject: [PATCH] add localhost to resolvconf --- roles/unbound/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/unbound/tasks/main.yml b/roles/unbound/tasks/main.yml index b902089..d0fdd75 100644 --- a/roles/unbound/tasks/main.yml +++ b/roles/unbound/tasks/main.yml @@ -30,3 +30,8 @@ - name: Enable and start Unbound service: name=unbound.service enabled=yes state=started + +- name: Configure resolvconf to use Unbound + lineinfile: dest=/etc/resolvconf.conf + state=present + line="name_servers=127.0.0.1"