aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dns/tasks/main.yml')
-rw-r--r--roles/dns/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/dns/tasks/main.yml b/roles/dns/tasks/main.yml
index e384929..b72b548 100644
--- a/roles/dns/tasks/main.yml
+++ b/roles/dns/tasks/main.yml
@@ -30,6 +30,12 @@
command: unbound-control-setup
when: not stat_result.stat.exists
+- name: unbound - fetch initial anchor
+ command: >
+ unbound-anchor -a /usr/local/etc/unbound/root.key
+ -r /usr/local/etc/unbound/root.hints
+ ignore_errors: true
+
- name: unbound - copy configuration
copy:
src: unbound.conf