fix: organization customize

This commit is contained in:
Matthieu Bessat 2024-07-10 11:06:57 +02:00
parent 3f391f0ba5
commit af0ee2691a
5 changed files with 71 additions and 39 deletions

View file

@ -31,12 +31,16 @@
state: started
enabled: true
- name: Create unbound configs dir
file:
state: directory
path: "/etc/unbound/config.d"
# copy from dots file to the /etc/unbound/config.d the additonal config enabled
- name: Setup additonal namespaces config
when: unbound_profiles is defined
- name: Setup additonal profile config
when: organization is defined and "unbound" in organization_customize
become: true
copy:
src: "{{ home }}/.dots/config/unbound/profiles/{{ item }}.conf"
dest: "/etc/unbound/config.d/{{ item }}.conf"
with_items: "{{ unbound_profiles }}"
src: "{{ home }}/.dots/profiles/{{ organization }}/configs/unbound.conf"
dest: "/etc/unbound/config.d/{{ organization }}.conf"