playbooks/dns: Add main server addresses now using dns/server_entries

dehydrated
Felix Stupp 5 years ago
parent 55b27c041b
commit 8c0e34729a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -17,12 +17,6 @@
@ IN NS ns1
ns1 IN A {{ ansible_default_ipv4.address }}
ns1 IN AAAA {{ ansible_default_ipv6.address }}
; Automatic server addresses
{% for fqdn in groups['public_available'] %}
{{ fqdn }}. IN A {{ hostvars[fqdn].ansible_default_ipv4.address }}
{{ fqdn }}. IN AAAA {{ hostvars[fqdn].ansible_default_ipv6.address }}
{{ lookup('pipe', global_public_key_directory|quote + '/ssh_dns_fp.py --host ' + fqdn|quote) }}
{% endfor %}
; Public use domains
_minecraft._tcp.wg IN SRV 10 10 25565 mc.wg
mc.wg IN A 85.131.171.106
@ -55,3 +49,9 @@
; Mail
@ IN MX 10 nvak
@ IN TXT "v=spf1 +mx -all"
- name: Add public available hosts to dns zones
hosts: public_available
roles:
- role: dns/server_entries
domain: "{{ inventory_hostname }}"

Loading…
Cancel
Save