-
Notifications
You must be signed in to change notification settings - Fork 32
/
anycast-dns.yml
32 lines (29 loc) · 904 Bytes
/
anycast-dns.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- name: Generate DNS zones
hosts: anycast_auth_dns
become: false
tasks:
- name: Update cached copy of dn42 registry
local_action: shell cd dn42-registry && git pull
run_once: true
- name: Generate DNS zones
local_action: command scripts/make-dns-records.py
run_once: true
- name: Generate forward-zones config
local_action: command scripts/make-forward-zones.sh
run_once: true
- name: Configure authoritative DNS
hosts: anycast_auth_dns
become: yes
roles:
- role: config-loopback
dummy_iface: "{{ dummy_interfaces.anycast_auth_dns }}"
- role: config-powerdns
- name: Configure DNS recursors
hosts: anycast_recursors
become: yes
roles:
- role: config-loopback
dummy_iface: "{{ dummy_interfaces.anycast_recursors }}"
- role: config-iptables
- role: config-powerdns-recursor
- role: config-resolv-conf