moved local-ttl to dnsmasq.d

This commit is contained in:
Philip (a-0) 2022-08-07 13:31:59 +02:00
parent 8d0370b2ff
commit e4347eeb4f
4 changed files with 7 additions and 4 deletions

View file

@ -1 +0,0 @@
---

View file

@ -20,7 +20,6 @@
vars:
__os_supported: "{{ lookup('vars', '{}_os_supported'.format(role_name)) | bool }}"
- name: Check whether pi-hole is installed
stat:
path: "{{ pihole_config_dir }}"
@ -50,6 +49,11 @@
warn: false
when: not pihole_dir.stat.exists
- name: Set custom dnsmasq options
template:
src: dnsmasq.conf.j2
dest: /etc/dnsmasq.d/10-custom.conf
- name: Set admin password
shell: "pihole -a -p {{ pihole_admin_password }}"

View file

@ -0,0 +1 @@
local-ttl=3600

View file

@ -15,5 +15,4 @@ PIHOLE_DNS_2={{ pihole_fallback_dns_server }}
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSSEC=false
REV_SERVER=false
LOCAL_TTL=3600
REV_SERVER=false