Add internal alias to pihole

This commit is contained in:
Jake Howard
2023-01-08 18:36:03 +00:00
parent 5753cd2cf1
commit ad50176ee9
5 changed files with 18 additions and 0 deletions

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