mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
feat: more robust when check
Signed-off-by: William Wang <williamw0825@gmail.com>
This commit is contained in:
parent
b8e88e5201
commit
06b322d518
|
|
@ -32,7 +32,7 @@
|
|||
register: post_install_config_copy_result
|
||||
|
||||
- name: Post | Execute post-installation scripts on remote hosts
|
||||
when: or (.post_install_copy_result.error | empty) (.post_install_config_copy_result.error | empty)
|
||||
when: or (.post_install_copy_result.error | empty) (and .post_install_config_copy_result (.post_install_config_copy_result.error | empty))
|
||||
command: |
|
||||
for file in /etc/kubekey/scripts/post_install_*.sh; do
|
||||
if [ -f "$file" ]; then
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
register: pre_install_config_copy_result
|
||||
|
||||
- name: Pre | Execute pre-installation scripts on remote hosts
|
||||
when: or (.pre_install_copy_result.error | empty) (.pre_install_config_copy_result.error | empty)
|
||||
when: or (.pre_install_copy_result.error | empty) (and .pre_install_config_copy_result (.pre_install_config_copy_result.error | empty))
|
||||
command: |
|
||||
for file in /etc/kubekey/scripts/pre_install_*.sh; do
|
||||
if [ -f "$file" ]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue