Use real certs for DNS over TLS
This commit is contained in:
parent
8bdf278ea6
commit
5a9b0a6b20
2 changed files with 11 additions and 2 deletions
|
@ -73,19 +73,25 @@
|
||||||
- name: copy dns private key
|
- name: copy dns private key
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ tls_private }}/dns.home.foo.sh.key"
|
dest: "{{ tls_private }}/dns.home.foo.sh.key"
|
||||||
src: /srv/ca/private/dns.home.foo.sh.key
|
src: "{{ item }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
with_first_found:
|
||||||
|
- /srv/letsencrypt/live/dns.home.foo.sh/privkey.pem
|
||||||
|
- "/srv/ca/private/{{ inventory_hostname }}.key"
|
||||||
tags: certificate
|
tags: certificate
|
||||||
notify: restart unbound
|
notify: restart unbound
|
||||||
- name: copy dns certificate and ca cert
|
- name: copy dns certificate and ca cert
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ tls_certs }}/dns.home.foo.sh.crt"
|
dest: "{{ tls_certs }}/dns.home.foo.sh.crt"
|
||||||
src: /srv/ca/certs/dns.home.foo.sh.crt
|
src: "{{ item }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
owner: root
|
owner: root
|
||||||
group: "{{ ansible_wheel }}"
|
group: "{{ ansible_wheel }}"
|
||||||
|
with_first_found:
|
||||||
|
- /srv/letsencrypt/live/dns.home.foo.sh/fullchain.pem
|
||||||
|
- "/srv/ca/certs/{{ inventory_hostname }}.crt"
|
||||||
tags: certificate
|
tags: certificate
|
||||||
notify: restart unbound
|
notify: restart unbound
|
||||||
- name: copy dns zone files
|
- name: copy dns zone files
|
||||||
|
|
|
@ -35,6 +35,9 @@
|
||||||
- role: nginx/site
|
- role: nginx/site
|
||||||
site: devel01.foo.sh
|
site: devel01.foo.sh
|
||||||
proxy: https://devel01.home.foo.sh/
|
proxy: https://devel01.home.foo.sh/
|
||||||
|
- role: nginx/site
|
||||||
|
site: dns.home.foo.sh
|
||||||
|
redirect: https://www.foo.sh/
|
||||||
- role: nginx/site
|
- role: nginx/site
|
||||||
site: git.foo.sh
|
site: git.foo.sh
|
||||||
proxy: https://git02.home.foo.sh/
|
proxy: https://git02.home.foo.sh/
|
||||||
|
|
Loading…
Add table
Reference in a new issue