ansible-public-dns/roles/powerdns-install/tasks/main.yml
2024-01-16 15:38:30 +01:00

17 lines
529 B
YAML

- name: Create /etc/apt/keyrings directory
ansible.builtin.file:
path: /etc/apt/keyrings
state: directory
mode: '0755'
- name: Download PowerDNS Repo Signing Key
ansible.builtin.get_url:
url: https://repo.powerdns.com/FD380FBB-pub.asc
dest: /etc/apt/keyrings/auth-48-pub.asc
mode: '0644'
- name: Add PowerDNS Repository
ansible.builtin.apt_repository:
repo: deb [signed-by=/etc/apt/keyrings/auth-48-pub.asc arch=amd64] http://repo.powerdns.com/debian bookworm-auth-48 main
state: present