ansible/roles/dns/tasks/main.yml

22 lines
414 B
YAML
Raw Normal View History

2017-03-26 22:46:35 +02:00
---
- name: Install powerdns
apt: name={{ item }}
2017-03-26 22:46:35 +02:00
with_items:
# - pdns-server
- pdns-recursor
- 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:
# - pdns.conf
- recursor.conf
- 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:
# - pdns
- pdns-recursor