fix: add condition to check download_image in playbooks and tasks (#2769)

Signed-off-by: redscholar <blacktiledhouse@gmail.com>
This commit is contained in:
liujian 2025-09-18 12:35:49 +08:00 committed by GitHub
parent f3c66de4dd
commit 6f0437eabb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -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

View File

@ -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/