fix(dns): internalize Unbound config
This commit is contained in:
parent
85f1f01fb7
commit
6357bc6c21
3 changed files with 61 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
- name: Setup unbound config
|
||||
become: true
|
||||
copy:
|
||||
src: "{{ home }}/.dots/config/unbound/unbound.conf"
|
||||
template:
|
||||
src: "unbound.conf"
|
||||
dest: "/etc/unbound/unbound.conf"
|
||||
owner: unbound
|
||||
mode: "u=rwX,g=rX,o="
|
||||
|
|
@ -32,15 +32,16 @@
|
|||
enabled: true
|
||||
|
||||
- name: Create unbound configs dir
|
||||
become: true
|
||||
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 profile config
|
||||
when: organization is defined and "unbound" in organization_customize
|
||||
become: true
|
||||
copy:
|
||||
src: "{{ home }}/.dots/profiles/{{ organization }}/configs/unbound.conf"
|
||||
dest: "/etc/unbound/config.d/{{ organization }}.conf"
|
||||
# # copy from dots file to the /etc/unbound/config.d the additonal config enabled
|
||||
# - name: Setup additonal profile config
|
||||
# when: organization is defined and "unbound" in organization_customize
|
||||
# become: true
|
||||
# copy:
|
||||
# src: "{{ home }}/.dots/profiles/{{ organization }}/configs/unbound.conf"
|
||||
# dest: "/etc/unbound/config.d/{{ organization }}.conf"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue