2017-03-26 22:46:35 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install powerdns
|
2017-06-30 11:59:14 +02:00
|
|
|
apt: name={{ item }}
|
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
|