This commit is contained in:
parent
fac0e1caa5
commit
8026d71e2a
@ -1,19 +1,6 @@
|
|||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
- name: Copy certs and private key to nginx proxy (content)
|
- name: Copy certs and private key to nginx proxy
|
||||||
copy:
|
|
||||||
content: "{{ item.src }}"
|
|
||||||
dest: "{{ item.dest }}"
|
|
||||||
mode: "{{ item.mode }}"
|
|
||||||
with_items:
|
|
||||||
- { src: "{{ pve_tls_key_source }}", dest: '/etc/pki/tls/private/{{ pve_nginx_tls_key_file }}', mode: '0600' }
|
|
||||||
- { src: "{{ pve_tls_cert_source }}", dest: '/etc/pki/tls/certs/{{ pve_nginx_tls_cert_file }}', mode: '0750' }
|
|
||||||
loop_control:
|
|
||||||
label: "{{ item.dest }}"
|
|
||||||
notify: __nginx_reload
|
|
||||||
when: pve_tls_source_use_content
|
|
||||||
|
|
||||||
- name: Copy certs and private key to nginx proxy (files)
|
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
@ -24,7 +11,6 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
notify: __nginx_reload
|
notify: __nginx_reload
|
||||||
when: pve_tls_source_use_files
|
|
||||||
delegate_to: "{{ pve_nginx_server }}"
|
delegate_to: "{{ pve_nginx_server }}"
|
||||||
when: pve_nginx_tls_enabled
|
when: pve_nginx_tls_enabled
|
||||||
become: True
|
become: True
|
||||||
|
Loading…
Reference in New Issue
Block a user