This commit is contained in:
parent
1464ef73cb
commit
f6c4f927f4
@ -5,3 +5,6 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- pdns
|
- pdns
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
|
|
||||||
|
- name: Restart dnsdist
|
||||||
|
service: name=dnsdist state=restarted
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
- name: Install powerdns
|
- name: Install powerdns
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
|
- dnsdist
|
||||||
- pdns-backend-bind
|
- pdns-backend-bind
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
- pdns-server
|
- pdns-server
|
||||||
@ -12,7 +13,6 @@
|
|||||||
|
|
||||||
- name: Configure powerdns
|
- name: Configure powerdns
|
||||||
template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
|
template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
|
||||||
tags: dns
|
|
||||||
notify: Restart powerdns
|
notify: Restart powerdns
|
||||||
with_items:
|
with_items:
|
||||||
- bind/ffrgb.zone
|
- bind/ffrgb.zone
|
||||||
@ -21,8 +21,13 @@
|
|||||||
- pdns.conf
|
- pdns.conf
|
||||||
- recursor.conf
|
- recursor.conf
|
||||||
|
|
||||||
- name: Start the powerdns services
|
- name: Configure dnsdist
|
||||||
|
template: src=dnsdist.conf.j2 dest=/etc/dnsdist/dnsdist.conf
|
||||||
|
notify: Restart dnsdist
|
||||||
|
|
||||||
|
- name: Start the dns services
|
||||||
service: name={{ item }} state=started enabled=yes
|
service: name={{ item }} state=started enabled=yes
|
||||||
with_items:
|
with_items:
|
||||||
|
- dnsdist
|
||||||
- pdns
|
- pdns
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
|
12
roles/dns/templates/dnsdist.conf.j2
Normal file
12
roles/dns/templates/dnsdist.conf.j2
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
-- {{ ansible_managed }}
|
||||||
|
|
||||||
|
setLocal('127.0.0.1:5353')
|
||||||
|
|
||||||
|
newServer({address="127.0.0.1", qps=1, name="localhost"})
|
||||||
|
|
||||||
|
addTLSLocal('127.0.0.1','/etc/nginx/ssl/{{ ansible_fqdn }}.crt', '/etc/nginx/ssl/{{ ansible_fqdn }}.key')
|
||||||
|
addTLSLocal('{{ batman_ipv4 | ipaddr('address') }}','/etc/nginx/ssl/{{ ansible_fqdn }}.crt', '/etc/nginx/ssl/{{ ansible_fqdn }}.key')
|
||||||
|
addTLSLocal('{{ batman_ipv6 | ipaddr('address') }}','/etc/nginx/ssl/{{ ansible_fqdn }}.crt', '/etc/nginx/ssl/{{ ansible_fqdn }}.key')
|
||||||
|
|
||||||
|
-- disable security status polling via DNS
|
||||||
|
setSecurityPollSuffix("")
|
Loading…
Reference in New Issue
Block a user