blob: 88f9c4b7d381a53f26e9350eae4078af060cf07a [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 Williams142f2b52020-11-22 19:35:44 -070027- name: Install unbound packages (Debian)
28 apt:
29 name: "unbound"
30 state: "present"
31 update_cache: true
32 cache_valid_time: 3600