From cf465e009de85b9d217c53c1109a16a8809c14ca Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Tue, 9 Jul 2024 12:51:18 +0200 Subject: [PATCH] feat(dns): unbound profiles --- ansible/roles/dns/tasks/main.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/roles/dns/tasks/main.yaml b/ansible/roles/dns/tasks/main.yaml index a23a1ec..b048e84 100644 --- a/ansible/roles/dns/tasks/main.yaml +++ b/ansible/roles/dns/tasks/main.yaml @@ -30,3 +30,12 @@ name: unbound state: started enabled: true + +# copy from dots file to the /etc/unbound/config.d the additonal config enabled +- name: Setup additonal namespaces config + become: true + copy: + src: "{{ home }}/.dots/config/unbound/profiles/{{ item }}.conf" + dest: "/etc/unbound/config.d/{{ item }}.conf" + with_items: "{{ unbound_profiles }}" +