mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
fix: add condition to check download_image in playbooks and tasks (#2769)
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
This commit is contained in:
parent
f3c66de4dd
commit
6f0437eabb
|
|
@ -19,6 +19,7 @@
|
|||
manifests: "{{ .image_manifests | toJson }}"
|
||||
when:
|
||||
- .image_manifests | default list | empty | not
|
||||
- download.download_image
|
||||
- name: PushImage | Push images to registry
|
||||
tags: ["push","image_registry"]
|
||||
block:
|
||||
|
|
|
|||
|
|
@ -7,4 +7,5 @@
|
|||
{{ .binary_dir }}/images/
|
||||
manifests: "{{ .image_manifests | toJson }}"
|
||||
when:
|
||||
- .image_manifests | default list | empty | not
|
||||
- .image_manifests | default list | empty | not
|
||||
- download.download_image
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
- name: ImageRegistry | Synchronize images to remote host
|
||||
when:
|
||||
- .image_manifests | default list | empty | not
|
||||
- download.download_image
|
||||
copy:
|
||||
src: >-
|
||||
{{ .binary_dir }}/images/
|
||||
|
|
|
|||
Loading…
Reference in New Issue