ansible-public-dns/roles/autosecondaries/tasks/main.yml

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