unbound: Download DNSSEC root key
This commit is contained in:
parent
56280d51a7
commit
1fdb448fc4
1 changed files with 9 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue