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

View File

@ -6,6 +6,10 @@ addn-hosts=/etc/hosts.custom
address=/{{ alias.host }}/{{ alias.ip }} address=/{{ alias.host }}/{{ alias.ip }}
{% endfor %} {% 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 %} {% for server in dnsmasq.servers %}
{% if server.reverse|default(False) %} {% if server.reverse|default(False) %}
rev-server={{ server.mask }},{{ server.gateway }} rev-server={{ server.mask }},{{ server.gateway }}

View File

@ -27,7 +27,7 @@
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/pihole/setupVars.conf path: /etc/pihole/setupVars.conf
regexp: "^DNSMASQ_LISTENING=" regexp: "^DNSMASQ_LISTENING="
line: DNSMASQ_LISTENING=bind line: DNSMASQ_LISTENING=single
create: yes create: yes
- name: Set pihole fqdn forwarding - name: Set pihole fqdn forwarding
@ -45,3 +45,11 @@
regexp: "^DNS_BOGUS_PRIV=" regexp: "^DNS_BOGUS_PRIV="
line: DNS_BOGUS_PRIV=true line: DNS_BOGUS_PRIV=true
create: yes 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_temp1=60000
dtparam=poe_fan_temp2=63000 dtparam=poe_fan_temp2=63000
dtparam=poe_fan_temp3=66000 dtparam=poe_fan_temp3=66000
dtoverlay=vc4-fkms-v3d
dest: /boot/firmware/usercfg.txt 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 # - hosts: usg
# vars_files: # vars_files:
# - "vars/vault.yml" # - "vars/vault.yml"