copy tls files to pve filesystem
This commit is contained in:
parent
6f63ab5e74
commit
a3e2125689
|
@ -44,16 +44,18 @@
|
|||
when: pve_tls_source_use_content
|
||||
|
||||
- debug:
|
||||
msg: "{{ item.dest }}"
|
||||
with_items: "{{ __pve_copy_cert }}"
|
||||
msg: "{{ item.changed }}"
|
||||
|
||||
# - name: Copy cert/key to pve filesystem
|
||||
# command: "/bin/cp -rf {{ item.0.path }}/{{ item.0.name }} /etc/pve/nodes/{{ item.1 }}/{{ item.0.name }}"
|
||||
# with_subelements:
|
||||
# - "{{ __pve_certificates }}"
|
||||
# - nodes
|
||||
# when: __pve_copy_cert.changed
|
||||
# changed_when: __pve_copy_cert.changed
|
||||
# notify: __pveproxy_restart
|
||||
|
||||
when:
|
||||
|
||||
- name: Copy cert/key to pve filesystem
|
||||
command: "/bin/cp -rf {{ item.dest }} /etc/pve/nodes/{{ item.dest | basename }}"
|
||||
when: item.changed
|
||||
changed_when: item.changed
|
||||
with_items: "{{ __pve_copy_cert.results }}"
|
||||
loop_control:
|
||||
label: "/etc/pve/nodes/{{ item.dest | basename }}"
|
||||
notify: __pveproxy_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
|
Loading…
Reference in New Issue