2017-03-26 22:46:35 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Enable backports
|
|
|
|
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
|
|
|
|
|
|
- name: Install powerdns
|
2017-04-05 22:02:56 +02:00
|
|
|
apt: name={{ item }} default_release=jessie-backports state=latest
|
2017-03-26 22:46:35 +02:00
|
|
|
with_items:
|
|
|
|
# - pdns-server
|
|
|
|
- pdns-recursor
|
|
|
|
|
|
|
|
- name: Configure powerdns
|
2017-04-05 22:02:56 +02:00
|
|
|
template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
|
2017-03-26 22:46:35 +02:00
|
|
|
tags: dns
|
|
|
|
notify: Restart powerdns
|
|
|
|
with_items:
|
|
|
|
# - pdns.conf
|
|
|
|
- recursor.conf
|
|
|
|
|
|
|
|
- name: Start the powerdns services
|
2017-04-05 22:02:56 +02:00
|
|
|
service: name={{ item }} state=started enabled=yes
|
2017-03-26 22:46:35 +02:00
|
|
|
with_items:
|
|
|
|
# - pdns
|
|
|
|
- pdns-recursor
|