ansible/roles/dns_auth/tasks/main.yml
Markus Hauschild 1da5ef70e5
Some checks failed
continuous-integration/drone/push Build is failing
dns_auth: dns_resolver: use bullseye system packages
2021-09-01 17:34:03 +02:00

23 lines
518 B
YAML

---
- name: Install powerdns
apt:
name:
- pdns-server
- pdns-backend-sqlite3
- sqlite3
- name: Configure powerdns
template: src=pdns.conf.j2 dest=/etc/powerdns/pdns.conf
notify: Restart powerdns
- name: Initialize database
command:
cmd: >
sqlite3 -init /usr/share/doc/pdns-backend-sqlite3/schema.sqlite3.sql
/var/lib/powerdns/powerdns.sqlite3
creates: /var/lib/powerdns/powerdns.sqlite3
- name: Start the powerdns services
service: name=pdns state=started enabled=yes