moved local-ttl to dnsmasq.d
This commit is contained in:
parent
8d0370b2ff
commit
e4347eeb4f
4 changed files with 7 additions and 4 deletions
|
@ -1 +0,0 @@
|
|||
---
|
|
@ -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 }}"
|
||||
|
||||
|
|
1
templates/dnsmasq.conf.j2
Normal file
1
templates/dnsmasq.conf.j2
Normal file
|
@ -0,0 +1 @@
|
|||
local-ttl=3600
|
|
@ -16,4 +16,3 @@ DNS_FQDN_REQUIRED=true
|
|||
DNS_BOGUS_PRIV=true
|
||||
DNSSEC=false
|
||||
REV_SERVER=false
|
||||
LOCAL_TTL=3600
|
Loading…
Add table
Add a link
Reference in a new issue