9ff2ecb031
We get a nice optimisation by using a filtered loop instead of task skipping per service with 'when'. Partially-Implements: blueprint performance-improvements Change-Id: I8f68100870ab90cb2d6b68a66a4c97df9ea4ff52
13 lines
435 B
YAML
13 lines
435 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 }}"
|
|
with_dict: "{{ lookup('vars', (kolla_role_name | default(project_name)) + '_services') | select_services_enabled_and_mapped_to_host }}"
|
|
loop_control:
|
|
label: "{{ item.key }}"
|