copy tls files to pve filesystem

This commit is contained in:
Robert Kaussow 2018-08-18 17:16:32 +02:00
parent 6f63ab5e74
commit a3e2125689
1 changed files with 12 additions and 10 deletions

View File

@ -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