mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-24 09:07:47 -02:30
Add download retries option (#9911)
Signed-off-by: tu1h <lihai.tu@daocloud.io>
This commit is contained in:
@@ -64,7 +64,7 @@
|
||||
run_once: "{{ download_force_cache }}"
|
||||
register: uri_result
|
||||
until: uri_result is success
|
||||
retries: 4
|
||||
retries: "{{ download_retries }}"
|
||||
delay: "{{ retry_stagger | default(5) }}"
|
||||
environment: "{{ proxy_env }}"
|
||||
no_log: "{{ not (unsafe_show_logs|bool) }}"
|
||||
@@ -97,7 +97,7 @@
|
||||
register: get_url_result
|
||||
become: "{{ not download_localhost }}"
|
||||
until: "'OK' in get_url_result.msg or 'file already exists' in get_url_result.msg"
|
||||
retries: 4
|
||||
retries: "{{ download_retries }}"
|
||||
delay: "{{ retry_stagger | default(5) }}"
|
||||
environment: "{{ proxy_env }}"
|
||||
no_log: "{{ not (unsafe_show_logs|bool) }}"
|
||||
@@ -122,7 +122,7 @@
|
||||
register: get_task
|
||||
until: get_task is succeeded
|
||||
delay: "{{ retry_stagger | random + 3 }}"
|
||||
retries: 4
|
||||
retries: "{{ download_retries }}"
|
||||
when:
|
||||
- download_force_cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user