2018-10-22 20:58:34 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Install powerdns
|
2020-11-13 21:34:36 +01:00
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- pdns-server
|
|
|
|
- pdns-backend-sqlite3
|
2018-10-22 20:58:34 +02:00
|
|
|
|
|
|
|
- name: Configure powerdns
|
|
|
|
template: src=pdns.conf.j2 dest=/etc/powerdns/pdns.conf
|
|
|
|
notify: Restart powerdns
|
|
|
|
|
|
|
|
- name: Copy update policy script
|
|
|
|
copy: src=updatepolicy.lua dest=/etc/powerdns/updatepolicy.lua
|
|
|
|
notify: Restart powerdns
|
|
|
|
|
|
|
|
- name: Initialize update policy alias list
|
|
|
|
copy: src=updatepolicy.aliases dest=/etc/powerdns/updatepolicy.aliases force=no
|
|
|
|
|
|
|
|
- name: Start the powerdns services
|
|
|
|
service: name=pdns state=started enabled=yes
|