73bc7ec71a
We sometimes have the requirement that images should explicitly not be pulled. Using the service-images-pull tag, it is now possible to skip the actual pull task by using --skip-tags. Change-Id: Ia00a5ecbcb944c252cd9d0366d8cf1e7ff6327f7
19 lines
605 B
YAML
19 lines
605 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 }}"
|
|
tags:
|
|
- service-images-pull
|