ansible-roles/powerdns-authoritative/tasks/main.yml

17 lines
504 B
YAML

---
- block:
- name: Get the Powerdns repo key
apt_key: url={{ powerdns_auth_repo_key }} state=present
- name: Define the Powerdns package repository
apt_repository: repo='{{ powerdns_auth_repo_data }}' state=present update_cache=yes
- name: Install the powerdns packages
apt: pkg={{ item }} state=present
with_items: '{{ powerdns_auth_pkgs }}'
- name: Ensure that powerdns is running and enabled
service: name=pdns state=started enabled=yes
tags: [ 'dns', 'powerdns' ]