unbound: Download DNSSEC root key

This commit is contained in:
Timo Makinen 2025-05-24 19:47:41 +00:00
parent 56280d51a7
commit 1fdb448fc4

View file

@ -15,6 +15,15 @@
creates: "{{ unbound_confdir }}/unbound_control.key"
notify: Restart unbound
- name: Update DNSSEC root key
ansible.builtin.command:
argv:
- unbound-anchor
creates: "{{ unbound_zonedir }}/root.key"
register: result
failed_when: result.rc not in [0, 1]
notify: Restart unbound
- name: Copy zone files
ansible.builtin.copy:
dest: "{{ unbound_zonedir }}/{{ item }}"