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 }}" +