Modify dns for debian stretch.
This commit is contained in:
parent
0ec6cdf23f
commit
5b5fa52e53
@ -1,22 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Enable backports
|
|
||||||
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
||||||
|
|
||||||
- name: Install powerdns
|
- name: Install powerdns
|
||||||
apt: name={{item}} default_release=jessie-backports state=latest
|
apt: name={{item}} default_release=jessie-backports state=latest
|
||||||
tags: dns
|
|
||||||
with_items:
|
with_items:
|
||||||
- pdns-server
|
- pdns-server
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
|
|
||||||
- name: Create zone directory
|
- name: Create zone directory
|
||||||
file: path=/etc/powerdns/bind/ state=directory
|
file: path=/etc/powerdns/bind/ state=directory
|
||||||
tags: dns
|
|
||||||
|
|
||||||
- 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:
|
||||||
- pdns.conf
|
- pdns.conf
|
||||||
@ -27,7 +21,6 @@
|
|||||||
|
|
||||||
- name: Start the powerdns services
|
- name: Start the powerdns services
|
||||||
service: name={{item}} state=started enabled=yes
|
service: name={{item}} state=started enabled=yes
|
||||||
tags: dns
|
|
||||||
with_items:
|
with_items:
|
||||||
- pdns
|
- pdns
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
|
Loading…
Reference in New Issue
Block a user