From e229d4b6baf73b44881bb9d845f4ef5a542b3fb7 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 5 Jul 2020 15:13:22 +0200 Subject: [PATCH] add local resolver --- tasks/main.yml | 1 + templates/02-localresolver.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 5f2240a..696e6a7 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,6 +7,7 @@ state: stopped enabled: no failed_when: no + become: yes - name: "Set the __docker_pihole_admin_password fact" set_fact: diff --git a/templates/02-localresolver.conf.j2 b/templates/02-localresolver.conf.j2 index 6265573..d77cd10 100644 --- a/templates/02-localresolver.conf.j2 +++ b/templates/02-localresolver.conf.j2 @@ -1,5 +1,5 @@ # {{ ansible_managed }} ## local domain forwarder - +server=/local.lan/{{pihole_local_resolver}} server=/{{pihole_local_domain}}/{{pihole_local_resolver}} server=/{{pihole_local_reverse_domain}}/{{pihole_local_resolver}}