ansible/roles/dns/tasks/main.yml

29 lines
567 B
YAML
Raw Normal View History

2017-03-26 22:46:35 +02:00
---
- name: Install powerdns
2020-10-08 22:31:20 +02:00
apt:
name:
- pdns-backend-bind
- pdns-recursor
- pdns-server
2018-01-18 12:47:56 +01:00
- name: Create zone directory
file: path=/etc/powerdns/bind/ state=directory
2017-03-26 22:46:35 +02:00
- 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:
2018-07-26 10:57:58 +02:00
- bind/ffrgb.zone
- bind/90.10.in-addr.arpa.zone
- bindbackend.conf
- pdns.conf
- recursor.conf
2017-03-26 22:46:35 +02:00
- 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:
2018-07-26 10:57:58 +02:00
- pdns
- pdns-recursor