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}}