forked from infra/ansible
27 lines
541 B
YAML
27 lines
541 B
YAML
---
|
|
|
|
- name: Install powerdns
|
|
apt: name={{ item }}
|
|
loop:
|
|
- pdns-server
|
|
- pdns-recursor
|
|
|
|
- name: Create zone directory
|
|
file: path=/etc/powerdns/bind/ state=directory
|
|
|
|
- name: Configure powerdns
|
|
template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
|
|
notify: Restart powerdns
|
|
loop:
|
|
- pdns.conf
|
|
- recursor.conf
|
|
- bindbackend.conf
|
|
- bind/23.172.in-addr.arpa.zone
|
|
- bind/binary.kitchen.zone
|
|
|
|
- name: Start the powerdns services
|
|
service: name={{ item }} state=started enabled=yes
|
|
loop:
|
|
- pdns
|
|
- pdns-recursor
|