Add internal alias to pihole
This commit is contained in:
1
ansible/roles/pihole/files/internal-alias.conf
Normal file
1
ansible/roles/pihole/files/internal-alias.conf
Normal file
@ -0,0 +1 @@
|
||||
alias={{ hosts.casey_ip }},{{ pve_hosts.ingress.external_ip }}
|
5
ansible/roles/pihole/handlers/main.yml
Normal file
5
ansible/roles/pihole/handlers/main.yml
Normal file
@ -0,0 +1,5 @@
|
||||
- name: restart pihole FTL
|
||||
service:
|
||||
name: pihole-FTL
|
||||
state: restarted
|
||||
become: true
|
7
ansible/roles/pihole/tasks/main.yml
Normal file
7
ansible/roles/pihole/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user