try to workaround pve filesystem limitations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
24dd341eba
commit
bbd8501669
@ -15,10 +15,9 @@
|
|||||||
mode: 0640
|
mode: 0640
|
||||||
register: __pve_domains_copy
|
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"
|
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.changed
|
||||||
changed_when: __pve_domains_copy.results.changed
|
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
@ -38,12 +37,11 @@
|
|||||||
mode:
|
mode:
|
||||||
register: __pve_auth_copy
|
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"
|
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.changed
|
||||||
changed_when: __pve_auth_copy.results.changed
|
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
when:
|
when:
|
||||||
- pve_auth_ldap_enabled
|
- pve_auth_ldap_enabled | bool
|
||||||
- pve_auth_ldap_bind_password is defined
|
- pve_auth_ldap_bind_password is defined
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
- name: Copy cert/key to pve filesystem
|
- name: Copy cert/key to pve filesystem
|
||||||
command: "/bin/cp -rf {{ item[0].dest }} /etc/pve/nodes/{{ item[1] }}/{{ item[0].dest | basename }}"
|
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
|
changed_when: item[0].changed
|
||||||
with_nested:
|
with_nested:
|
||||||
- "{{ __pve_tls_copy.results }}"
|
- "{{ __pve_tls_copy.results }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user