diff options
author | Aaron LI <aly@aaronly.me> | 2019-09-21 08:57:35 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-09-21 08:57:35 +0800 |
commit | ed718bcd0ce8cec45104d27780b371560aae8429 (patch) | |
tree | da81a2006b5e6d5d32ccc959c02db83ffa321a40 /roles | |
parent | bdbd09ed8affb0a59849bc62bf5d30d0348e2856 (diff) | |
download | ansible-dfly-vps-ed718bcd0ce8cec45104d27780b371560aae8429.tar.bz2 |
dns: Fetch initial anchor for unbound
Diffstat (limited to 'roles')
-rw-r--r-- | roles/dns/tasks/main.yml | 6 |
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 |