Merge "Retry remote fetch tasks"
This commit is contained in:
commit
54e57e8b4b
@ -39,6 +39,8 @@
|
||||
url: "{{ lxc_image_cache_server }}/{{ item.split(';')[-1] }}/meta.tar.xz"
|
||||
dest: "/tmp/meta.tar.xz"
|
||||
with_items: "{{ lxc_images }}"
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: Place container metadata
|
||||
unarchive:
|
||||
|
@ -23,6 +23,8 @@
|
||||
url: "{{ lxc_image_cache_server }}/meta/1.0/index-system"
|
||||
return_content: yes
|
||||
register: image_index
|
||||
retries: 5
|
||||
delay: 2
|
||||
|
||||
- name: Set image index fact
|
||||
set_fact:
|
||||
|
@ -133,8 +133,8 @@
|
||||
dest: "/tmp/rootfs.tar.xz"
|
||||
register: pull_image
|
||||
until: pull_image | success
|
||||
retries: 3
|
||||
delay: 1
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: "{{ lxc_images }}"
|
||||
|
||||
- name: Place container rootfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user