blob: d0d23385f80ba2e46d830f519f4f007809558554 [file] [log] [blame]
Zack Williams142f2b52020-11-22 19:35:44 -07001---
2# unbound tasks/Debian.yml
3#
4# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
Zack Williams8296e472021-03-23 21:13:07 -07007# network may not be ready for unbound to bind to a specific IP address, so
8# wait for that
9# docs: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
10
11- name: Create a directory for reconfiguring unbound via systemd
12 file:
13 path: "/etc/systemd/system/unbound.service.d"
14 state: directory
15 owner: root
16 group: root
17 mode: "0644"
18
19- name: Configure systemd unit to wait until network is online to start unbound
20 copy:
21 src: "network_online.conf"
22 dest: "/etc/systemd/system/unbound.service.d/network_online.conf"
23 owner: root
24 group: root
25 mode: "0644"
26
Zack Williams8914f9e2022-06-02 16:44:44 -070027- name: Disable DNSSEC anchor download that can hang on startup
28 copy:
29 src: "default_unbound"
30 dest: "/etc/default/unbound"
31 owner: root
32 group: root
33 mode: "0644"
34
Zack Williams142f2b52020-11-22 19:35:44 -070035- name: Install unbound packages (Debian)
36 apt:
37 name: "unbound"
38 state: "present"
39 update_cache: true
40 cache_valid_time: 3600