pi things

This commit is contained in:
Roxedus 2022-10-18 22:13:55 +02:00
parent cdbe3750d5
commit 271204d4e9
Signed by: Roxedus
GPG Key ID: 9B4E311961C63639
4 changed files with 35 additions and 1 deletions

View File

@ -8,6 +8,8 @@ dnsmasq:
host: "{{ secret_unraid_uuid }}.unraid.net"
- ip: 10.0.0.35
host: "proxmox.{{ dmasq_local_domain }}"
- ip: 10.0.0.38
host: "adguard01.{{ dmasq_local_domain }}"
- ip: 10.0.2.70
host: "controlplane.kube.{{ dmasq_local_domain }}"
@ -21,6 +23,13 @@ dnsmasq:
- ip: 10.0.2.16
host: "r710.man.{{ dmasq_local_domain }}"
srv:
- service: VLMCS
protocol: TCP
domain: "{{ dmasq_local_domain }}"
url: 10.0.2.70
port: 1688
servers:
- gateway: 10.0.0.1
host: "{{ dmasq_local_domain }}"

View File

@ -6,6 +6,10 @@ addn-hosts=/etc/hosts.custom
address=/{{ alias.host }}/{{ alias.ip }}
{% endfor %}
{% for srv in dnsmasq.srv %}
srv-host=_{{ srv.service }}._{{ srv.protocol | default("tcp") | upper }}.{{ srv.domain }},{{ srv.url | default(srv.service + "." + srv.domain) }},{{ srv.port }}
{% endfor %}
{% for server in dnsmasq.servers %}
{% if server.reverse|default(False) %}
rev-server={{ server.mask }},{{ server.gateway }}

View File

@ -27,7 +27,7 @@
ansible.builtin.lineinfile:
path: /etc/pihole/setupVars.conf
regexp: "^DNSMASQ_LISTENING="
line: DNSMASQ_LISTENING=bind
line: DNSMASQ_LISTENING=single
create: yes
- name: Set pihole fqdn forwarding
@ -45,3 +45,11 @@
regexp: "^DNS_BOGUS_PRIV="
line: DNS_BOGUS_PRIV=true
create: yes
- name: Set pihole iCloud relay
become: true
ansible.builtin.lineinfile:
path: /etc/pihole/setupVars.conf
regexp: "^BLOCK_ICLOUD_PR="
line: BLOCK_ICLOUD_PR=false
create: yes

View File

@ -217,8 +217,21 @@
dtparam=poe_fan_temp1=60000
dtparam=poe_fan_temp2=63000
dtparam=poe_fan_temp3=66000
dtoverlay=vc4-fkms-v3d
dest: /boot/firmware/usercfg.txt
- hosts: piholes
vars_files:
- "vars/vault.yml"
tags:
- pihole
- update
roles:
- role: pihole_updatelist
- role: pi_dnsmasq
- role: pihole
# - hosts: usg
# vars_files:
# - "vars/vault.yml"