[base/unbound] Install dns-root-data package

Setting up a new Noble base server errors with:
  unbound[9702]: [9702:0] error: unable to open /var/lib/unbound/root.key for reading: No such file or directory
  unbound[9702]: [9702:0] error: error reading auto-trust-anchor-file: /var/lib/unbound/root.key

Rather that install and setup the root.key as described in[1] we install
the dns-root-data package which is recomended by the unbound package anyway

[1] https://nlnetlabs.nl/documentation/unbound/howto-anchor/

Change-Id: I6e6adffa8910931efa1f52d37848cce54f3b00c8
This commit is contained in:
Tony Breeds 2024-07-31 12:49:38 +10:00
parent f75e1443e5
commit 62b6ae4164

View File

@ -10,6 +10,12 @@
state: present
name: unbound
- name: Install dns-root-data on Noble
package:
state: present
name: dns-root-data
when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 24
- name: Write dhclient config files
include_tasks: dhclient.yaml
loop: