Version pihole settings

This commit is contained in:
Jake Howard 2023-01-24 20:15:21 +00:00
parent 7edf6899f3
commit 5e9c5f7683
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,25 @@
PIHOLE_INTERFACE=eth0
QUERY_LOGGING=false
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true
CACHE_SIZE=10000
DNS_FQDN_REQUIRED=true
DNS_BOGUS_PRIV=true
DNSMASQ_LISTENING=bind
WEBPASSWORD={{ pihole_web_password | hash("sha256") | hash("sha256") }}
BLOCKING_ENABLED=true
DNSSEC=false
REV_SERVER=false
DHCP_ACTIVE=true
DHCP_START=192.168.1.10
DHCP_END=192.168.1.199
DHCP_ROUTER=192.168.1.1
DHCP_LEASETIME=24
PIHOLE_DOMAIN=lan
DHCP_IPv6=true
DHCP_rapid_commit=false
PIHOLE_DNS_1=9.9.9.10
PIHOLE_DNS_2=149.112.112.10
PIHOLE_DNS_3=2620:fe::10
PIHOLE_DNS_4=2620:fe::fe:10

View file

@ -1,3 +1,6 @@
- name: Include vault
include_vars: vault.yml
- name: Install internal alias config
template:
src: files/internal-alias.conf
@ -5,3 +8,11 @@
mode: 0644
notify: restart pihole FTL
become: true
- name: Install pihole config
template:
src: files/setup-vars.conf
dest: /etc/pihole/setupVars.conf
mode: 0644
notify: restart pihole FTL
become: true

View file

@ -0,0 +1 @@
pihole_web_password: "{{ vault_pihole_web_password }}"

View file

@ -0,0 +1,9 @@
$ANSIBLE_VAULT;1.1;AES256
66636263396334636539636365646537653432613831363035306465623566623636623464326562
3335626466373839346639653537363162623664333432340a383061366238386564346265353835
35373961616632643831363864643436383031383231346338353735633134383539613533663935
3766666364623362630a633564343038316131306561363730663930393234303839613565373336
61366230326239336635316366363238633061313138303132663563613131383033366661313165
66353961343234643536336531313734336331643938666631616665316133386233303633663032
62633733646131396634343932636561306636323635323536353562626334653866343337613336
61633136303336633966