always use arpa.xxxx.xxx
for local domain
This commit is contained in:
parent
f80a8e9df1
commit
c39bf60baf
@ -35,8 +35,8 @@ ddns_override:
|
|||||||
|
|
||||||
dns_override:
|
dns_override:
|
||||||
api_key: "{{ bitwarden_records_urmel_services['Pihole'].login.password }}"
|
api_key: "{{ bitwarden_records_urmel_services['Pihole'].login.password }}"
|
||||||
domain: "pihole.arpa.be.urmel.de"
|
domain: "pihole.arpa.urmel.de"
|
||||||
local_domain: "be.urmel.de"
|
local_domains: ["be.urmel.de", "arpa.urmel.de"]
|
||||||
domain_host: 192.168.1.2
|
domain_host: 192.168.1.2
|
||||||
domain_host_v6: fd00:0000:1000::2
|
domain_host_v6: fd00:0000:1000::2
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ homeassistant_override:
|
|||||||
zigbee2mqtt:
|
zigbee2mqtt:
|
||||||
zigbee_adapter_id: "usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_f4b015d959f3ef1199c2c61b6d9880ab-if00-port0"
|
zigbee_adapter_id: "usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_f4b015d959f3ef1199c2c61b6d9880ab-if00-port0"
|
||||||
version: latest
|
version: latest
|
||||||
domain: "mqtt.arpa.be.urmel.de"
|
domain: "mqtt.arpa.urmel.de"
|
||||||
auth_token: "{{ (bitwarden_records_urmel_services['Homeassistant'].fields | selectattr('name', '==', 'mqtt_auth_token') | first).value }}"
|
auth_token: "{{ (bitwarden_records_urmel_services['Homeassistant'].fields | selectattr('name', '==', 'mqtt_auth_token') | first).value }}"
|
||||||
mariadb:
|
mariadb:
|
||||||
password: "{{ (bitwarden_records_urmel_services['Homeassistant'].fields | selectattr('name', '==', 'mariadb_password') | first).value }}"
|
password: "{{ (bitwarden_records_urmel_services['Homeassistant'].fields | selectattr('name', '==', 'mariadb_password') | first).value }}"
|
||||||
|
|||||||
@ -4,4 +4,6 @@ dns_override: {}
|
|||||||
dns_defaults:
|
dns_defaults:
|
||||||
api_key: ""
|
api_key: ""
|
||||||
domain: ""
|
domain: ""
|
||||||
|
local_domains: []
|
||||||
domain_host: ""
|
domain_host: ""
|
||||||
|
domain_host_v6: ""
|
||||||
|
|||||||
@ -5,4 +5,5 @@
|
|||||||
recreate: "always"
|
recreate: "always"
|
||||||
services: ["pihole"]
|
services: ["pihole"]
|
||||||
state: "restarted"
|
state: "restarted"
|
||||||
when: not _dns_already_restarted
|
|
||||||
|
when: _dns_already_restarted is deffined and not _dns_already_restarted
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
address=/.{{ dns.local_domain }}/{{ dns.domain_host | default(ansible_facts.default_ipv4.address, true) }}
|
{% for local_domain in dns.local_domains %}
|
||||||
address=/.arpa.{{ dns.local_domain }}/{{ dns.domain_host | default(ansible_facts.default_ipv4.address, true) }}
|
address=/.{{ local_domain }}/{{ dns.domain_host | default(ansible_facts.default_ipv4.address, true) }}
|
||||||
|
address=/.{{ local_domain }}/{{ dns.domain_host_v6 | default(ansible_facts.default_ipv6.address, true) }}
|
||||||
|
|
||||||
address=/.{{ dns.local_domain }}/{{ dns.domain_host_v6 | default(ansible_facts.default_ipv6.address, true) }}
|
{% endfor %}
|
||||||
address=/.arpa.{{ dns.local_domain }}/{{ dns.domain_host_v6 | default(ansible_facts.default_ipv6.address, true) }}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user