mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-17 22:37:45 -02:30
Merge pull request #2048 from xizhibei/master
Fix: always only one container got synced after download
This commit is contained in:
@@ -1,4 +1,15 @@
|
|||||||
---
|
---
|
||||||
|
- name: container_download | Make download decision if pull is required by tag or sha256
|
||||||
|
include: set_docker_image_facts.yml
|
||||||
|
delegate_to: "{{ download_delegate if download_run_once or omit }}"
|
||||||
|
delegate_facts: no
|
||||||
|
run_once: "{{ download_run_once }}"
|
||||||
|
when:
|
||||||
|
- download.enabled
|
||||||
|
- download.container
|
||||||
|
tags:
|
||||||
|
- facts
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
fname: "{{local_release_dir}}/containers/{{download.repo|regex_replace('/|\0|:', '_')}}:{{download.tag|default(download.sha256)|regex_replace('/|\0|:', '_')}}.tar"
|
fname: "{{local_release_dir}}/containers/{{download.repo|regex_replace('/|\0|:', '_')}}:{{download.tag|default(download.sha256)|regex_replace('/|\0|:', '_')}}.tar"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|||||||
Reference in New Issue
Block a user