---
- name: doh_config set up kresd.conf
blockinfile:
- marker: "-- {mark} ANSIBLE MANAGED BLOCK"
+ marker: -- {mark} ANSIBLE MANAGED BLOCK
block: |
+ net.listen('127.0.0.1', 44353, { kind = 'doh' })
modules.load('http')
path: /etc/knot-resolver/kresd.conf
+ insertbefore: BOF
+++ /dev/null
----
-- name: doh_config set up kresd.conf
- blockinfile:
- marker: -- {mark} ANSIBLE MANAGED BLOCK
- block: |
- net.listen('127.0.0.1', 44353, { kind = 'doh' })
- modules.load('http')
- path: /etc/knot-resolver/kresd.conf
- insertbefore: BOF
state: latest
- include: configure_doh.yaml
- when: ansible_distribution in ["Fedora", "Debian", "Ubuntu"]
- - include: configure_doh_nosocket.yaml
- when: ansible_distribution == "CentOS"
+ when: ansible_distribution in ["CentOS", "Fedora", "Debian", "Ubuntu"]
- include: restart_kresd.yaml
- include: test_doh.yaml