summaryrefslogtreecommitdiffstats
path: root/distro/tests/ansible-roles/knot_resolver/tasks/configure_doh.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'distro/tests/ansible-roles/knot_resolver/tasks/configure_doh.yaml')
-rw-r--r--distro/tests/ansible-roles/knot_resolver/tasks/configure_doh.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/distro/tests/ansible-roles/knot_resolver/tasks/configure_doh.yaml b/distro/tests/ansible-roles/knot_resolver/tasks/configure_doh.yaml
new file mode 100644
index 0000000..cd4e749
--- /dev/null
+++ b/distro/tests/ansible-roles/knot_resolver/tasks/configure_doh.yaml
@@ -0,0 +1,10 @@
+---
+# SPDX-License-Identifier: GPL-3.0-or-later
+- name: doh_config set up kresd.conf
+ blockinfile:
+ marker: -- {mark} ANSIBLE MANAGED BLOCK
+ block: |
+ net.listen('127.0.0.1', 44353, { kind = 'doh_legacy' })
+ modules.load('http')
+ path: /etc/knot-resolver/kresd.conf
+ insertbefore: BOF