Allow making use of Ansible-vault to encrypt and decrypt sensitive certs and keys (#95)
* Allow making use of Ansible-vault to encrypt sensitive certs and keys
This commit is contained in:
parent
8ead2b7c00
commit
f79e6d0210
@ -68,6 +68,8 @@
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ nginx_ssl_crt_upload_dest }}"
|
||||
mode: 0640
|
||||
decrypt: yes
|
||||
backup: yes
|
||||
with_fileglob: "{{ nginx_ssl_crt_upload_src }}"
|
||||
when: nginx_ssl_upload_enable
|
||||
@ -76,6 +78,8 @@
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ nginx_ssl_key_upload_dest }}"
|
||||
mode: 0640
|
||||
decrypt: yes
|
||||
backup: yes
|
||||
with_fileglob: "{{ nginx_ssl_key_upload_src }}"
|
||||
when: nginx_ssl_upload_enable
|
||||
|
@ -8,6 +8,7 @@
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/ssl/nginx
|
||||
decrypt: yes
|
||||
with_items:
|
||||
- "{{ nginx_license.certificate }}"
|
||||
- "{{ nginx_license.key }}"
|
||||
|
Loading…
Reference in New Issue
Block a user