Add internal alias to pihole

This commit is contained in:
Jake Howard 2023-01-08 18:36:03 +00:00
parent 5753cd2cf1
commit ad50176ee9
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 18 additions and 0 deletions

View file

@ -17,6 +17,7 @@ pve_hosts:
ip: 10.23.1.107
ingress:
ip: 10.23.1.10
external_ip: 192.168.2.201
homeassistant:
ip: 192.168.2.203
qbittorrent:

View file

@ -132,3 +132,7 @@
- hosts: renovate
roles:
- renovate
- hosts: tang
roles:
- pihole

View file

@ -0,0 +1 @@
alias={{ hosts.casey_ip }},{{ pve_hosts.ingress.external_ip }}

View file

@ -0,0 +1,5 @@
- name: restart pihole FTL
service:
name: pihole-FTL
state: restarted
become: true

View file

@ -0,0 +1,7 @@
- name: Install internal alias config
template:
src: files/internal-alias.conf
dest: /etc/dnsmasq.d/internal-alias.conf
mode: 0644
notify: restart pihole FTL
become: true