mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
* fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * fix: misspelling Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: user go-template instance pongo2-template Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: not set incorrect Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> * feat: more beautiful progress bar Signed-off-by: joyceliu <joyceliu@yunify.com> --------- Signed-off-by: joyceliu <joyceliu@yunify.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
31 lines
734 B
YAML
31 lines
734 B
YAML
---
|
|
- name: Create work_dir
|
|
tags: ["always"]
|
|
command: |
|
|
if [ ! -d "{{ .work_dir }}" ]; then
|
|
mkdir -p {{ .work_dir }}
|
|
fi
|
|
|
|
- name: Extract artifact to work_dir
|
|
tags: ["always"]
|
|
command: |
|
|
if [ ! -f "{{ .artifact_file }}" ]; then
|
|
tar -zxvf {{ .artifact_file }} -C {{ .work_dir }}
|
|
fi
|
|
when: and .artifact_file (ne .artifact_file "")
|
|
|
|
- name: Download binaries
|
|
block:
|
|
# the binaries which download by curl
|
|
- include_tasks: download_by_curl.yaml
|
|
# the binaries which download by helm
|
|
- include_tasks: download_by_helm.yaml
|
|
|
|
- include_tasks: pki.yaml
|
|
tags: ["certs"]
|
|
|
|
- name: Chown work_dir to sudo
|
|
tags: ["always"]
|
|
command: |
|
|
chown -R ${SUDO_UID}:${SUDO_GID} {{ .work_dir }}
|