ADD DNSDist(DoH DoT) service

This commit is contained in:
2023-05-23 02:16:41 +02:00
parent 3fa5829d83
commit 9bf5f2dab4
6 changed files with 175 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
- name: install unbound DNS server
apt:
name: unbound
state: present
- name: Copy Configuration file for unbound
ansible.builtin.copy:
src: resolver.conf
dest: /etc/unbound/unbound.conf
owner: root
group: root
mode: '0644'
- name: Enable and start unbound service
shell: |
systemctl enable unbound
systemctl restart unbound