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 ip: 10.23.1.107
ingress: ingress:
ip: 10.23.1.10 ip: 10.23.1.10
external_ip: 192.168.2.201
homeassistant: homeassistant:
ip: 192.168.2.203 ip: 192.168.2.203
qbittorrent: qbittorrent:

View file

@ -132,3 +132,7 @@
- hosts: renovate - hosts: renovate
roles: roles:
- renovate - 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