try to workaround pve filesystem limitations
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2019-06-15 16:01:47 +02:00
parent 24dd341eba
commit bbd8501669
2 changed files with 5 additions and 8 deletions

View File

@ -15,10 +15,9 @@
mode: 0640
register: __pve_domains_copy
- name: Copy files to pve filesystem
- name: Copy auth provider to pve filesystem
command: "/bin/cp -rf {{ __pve_tmp_dir }}/domains.cfg {{ __pve_base_dir }}/domains.cfg"
when: __pve_domains_copy.results.changed
changed_when: __pve_domains_copy.results.changed
changed_when: __pve_domains_copy.changed
become: True
become_user: root
@ -38,12 +37,11 @@
mode:
register: __pve_auth_copy
- name: Copy files to pve filesystem
- name: Copy passwd file to pve filesystem
command: "/bin/cp -rf {{ __pve_tmp_dir }}/{{ pve_auth_ldap_realm }}.pw {{ __pve_base_dir }}/priv/ldap/{{ pve_auth_ldap_realm }}.pw"
when: __pve_auth_copy.results.changed
changed_when: __pve_auth_copy.results.changed
changed_when: __pve_auth_copy.changed
become: True
become_user: root
when:
- pve_auth_ldap_enabled
- pve_auth_ldap_enabled | bool
- pve_auth_ldap_bind_password is defined

View File

@ -23,7 +23,6 @@
- name: Copy cert/key to pve filesystem
command: "/bin/cp -rf {{ item[0].dest }} /etc/pve/nodes/{{ item[1] }}/{{ item[0].dest | basename }}"
when: item[0].changed
changed_when: item[0].changed
with_nested:
- "{{ __pve_tls_copy.results }}"