forked from FF-RGB/ansible
25 lines
586 B
YAML
25 lines
586 B
YAML
---
|
|
|
|
- name: Enable backports
|
|
apt_repository: repo='deb http://httpredir.debian.org/debian jessie-backports main' state=present
|
|
|
|
- name: Install powerdns
|
|
apt: name={{ item }} default_release=jessie-backports state=latest
|
|
with_items:
|
|
# - pdns-server
|
|
- pdns-recursor
|
|
|
|
- name: Configure powerdns
|
|
template: src={{ item }}.j2 dest=/etc/powerdns/{{ item }}
|
|
tags: dns
|
|
notify: Restart powerdns
|
|
with_items:
|
|
# - pdns.conf
|
|
- recursor.conf
|
|
|
|
- name: Start the powerdns services
|
|
service: name={{ item }} state=started enabled=yes
|
|
with_items:
|
|
# - pdns
|
|
- pdns-recursor
|