25 lines
712 B
YAML
25 lines
712 B
YAML
# Alliance Boréale - PowerDNS Repository Setup
|
|
# Date: 2025-10-31
|
|
|
|
---
|
|
- name: "🔑 Add PowerDNS GPG key"
|
|
ansible.builtin.apt_key:
|
|
url: https://repo.powerdns.com/FD380FBB-pub.asc
|
|
state: present
|
|
|
|
- name: "📦 Add PowerDNS repository"
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb [arch=amd64] http://repo.powerdns.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }}-auth-48 main"
|
|
state: present
|
|
filename: pdns
|
|
|
|
- name: "📋 Set PowerDNS package preferences"
|
|
ansible.builtin.copy:
|
|
dest: /etc/apt/preferences.d/pdns
|
|
content: |
|
|
Package: pdns-*
|
|
Pin: origin repo.powerdns.com
|
|
Pin-Priority: 600
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|