You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.6 KiB
YAML

- name: Gather facts of all public available hosts
hosts: public_available
gather_facts: yes
- name: Configure nvak as dns server
hosts: nvak.banananet.work
vars:
nvak_dns_slaves: []
roles:
- role: dns/master
domain: banananet.work
main_nameserver_domain: ns1.banananet.work
responsible_mail_name: admin.banananet.work
slaves: "{{ nvak_dns_slaves }}"
entries: |
; Name Servers
@ IN NS ns1
ns1 IN A {{ ansible_default_ipv4.address }}
ns1 IN AAAA {{ ansible_default_ipv6.address }}
; Public use domains
_minecraft._tcp.wg IN SRV 10 10 25565 mc.wg
mc.wg IN A 85.131.171.106
_minecraft._tcp.mc.wg IN SRV 10 10 25565 mc.wg
; Mail
@ IN MX 10 nvak
@ IN TXT "v=spf1 +mx -all"
- role: dns/master
domain: forumderschan.de
main_nameserver_domain: ns1.banananet.work
responsible_mail_name: admin.banananet.work
slaves: "{{ nvak_dns_slaves }}"
entries: |
; Name Servers
@ IN NS ns1.banananet.work.
; Mail
@ IN MX 10 nvak.banananet.work.
@ IN TXT "v=spf1 +mx -all"
- role: dns/master
domain: stadtpiraten-karlsruhe.de
main_nameserver_domain: ns1.banananet.work
responsible_mail_name: admin.banananet.work
slaves: "{{ nvak_dns_slaves }}"
entries: |
; Name Servers
@ IN NS ns1.banananet.work.
; Mail
@ IN MX 10 nvak.banananet.work.
@ 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 }}"