PiHole: Anpassungen für Homer (#77)

task pihole für homer cors

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#77
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
This commit is contained in:
Michael Grote 2021-05-02 14:03:16 +02:00
parent 2888d3c326
commit 9f0e771733
2 changed files with 9 additions and 1 deletions

View file

@ -19,3 +19,5 @@
- rule: allow
to_port: 68
comment: 'pihole-dhcp'
## playbook
pihole_homer_fqdn: docker.grote.lan # unter welchem host ist docker erreichbar? notwendig für die pihole stats in homer; fur die cors abfrage

View file

@ -10,7 +10,13 @@
create: yes
backrefs: false
mode: 0664
- name: Setze DNS-Resolver fuer pihole-*
ansible.builtin.blockinfile:
path: /etc/lighttpd/external.conf
block: |
setenv.add-environment = (
"VIRTUAL_HOST" => "{{ pihole_homer_fqdn }}
)
# Wenn die VM beim Start mit "systemd-networkd-wait-online." hängt
# Deaktiviere DHCP in:
# sudo nano /etc/netplan/01-netcfg.yaml