aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-09-21 08:57:35 +0800
committerAaron LI <aly@aaronly.me>2019-09-21 08:57:35 +0800
commited718bcd0ce8cec45104d27780b371560aae8429 (patch)
treeda81a2006b5e6d5d32ccc959c02db83ffa321a40
parentbdbd09ed8affb0a59849bc62bf5d30d0348e2856 (diff)
downloadansible-dfly-vps-ed718bcd0ce8cec45104d27780b371560aae8429.tar.bz2
dns: Fetch initial anchor for unbound
-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