57 lines
No EOL
1.4 KiB
YAML
57 lines
No EOL
1.4 KiB
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
|
|
#
|
|
#- name: Install PowerDNS
|
|
# ansible.builtin.apt:
|
|
# pkg:
|
|
# - pdns-server
|
|
# - pdns-backend-sqlite3
|
|
# state: latest
|
|
# update_cache: yes
|
|
# register: package_install
|
|
|
|
- name: Print groups
|
|
ansible.builtin.debug:
|
|
var: groups['autosecondaries']
|
|
verbosity: 2
|
|
|
|
- name: Print hostvars
|
|
ansible.builtin.debug:
|
|
var: hostvars
|
|
verbosity: 2
|
|
|
|
- name: Get AXFR IP List
|
|
build_axfr_list:
|
|
key: ipv6
|
|
group: autosecondaries
|
|
hostvars: "{{ hostvars }}"
|
|
hosts: "{{ groups['autosecondaries'] }} "
|
|
register: axfr_list
|
|
|
|
- name: Print return information from the previous task
|
|
ansible.builtin.debug:
|
|
var: axfr_list
|
|
verbosity: 2
|
|
|
|
- name: Configure PowerDNS
|
|
ansible.builtin.template:
|
|
src: pdns.conf.j2
|
|
dest: /etc/powerdns/pdns.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0640'
|
|
register: rsyslog_config |