Move certificates to Ansible Vault (#27)

This commit is contained in:
2021-05-14 23:52:06 +02:00
committed by Gitea
parent bd6f1b2371
commit af5e7c153f
10 changed files with 348 additions and 121 deletions

View File

@ -30,11 +30,13 @@
-days 3650 \
-sha256
when: generate_cert.wildcard
- name: copy wildcard certificate and key
- name: copy wildcard certificate and key from vault
copy:
src: "{{ item }}"
dest: "{{ data_folder }}/nginx/{{ item }}"
content: "{{ item.content }}"
dest: "{{ data_folder }}/nginx/{{ item.name }}"
owner: root
group: root
mode: '0700'
loop:
- "{{ base_domain }}.crt"
- "{{ base_domain }}.key"
with_items:
- "{{ certificates }}"
no_log: true