cbb567cb86
Sometimes, the registries may intermittently fail to deliver the images. This is often seen in the CI, though it also happens with production deployments, even those with internal registries and/or registry mirrors - due to sheer load when trying to pull the images from many hosts. This patchs adds two new vars to control retry behaviour. The default has been set to make users happier by default. :-) Change-Id: I81ad7d8642654f8474f11084c6934aab40243d35
17 lines
571 B
YAML
17 lines
571 B
YAML
---
|
|
- name: "{{ kolla_role_name | default(project_name) }} | Pull images"
|
|
vars:
|
|
service: "{{ item.value }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "pull_image"
|
|
common_options: "{{ docker_common_options }}"
|
|
image: "{{ service.image }}"
|
|
retries: "{{ service_images_pull_retries }}"
|
|
delay: "{{ service_images_pull_delay }}"
|
|
register: result
|
|
until: result is success
|
|
with_dict: "{{ lookup('vars', (kolla_role_name | default(project_name)) + '_services') | select_services_enabled_and_mapped_to_host }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|