aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/service-images-pull/tasks/main.yml
blob: ca2aafa3dba229eefa70fd349fb8ffe0bb41f008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- name: "Pull images for {{ kolla_role_name | default(project_name) }}"
  vars:
    service: "{{ item.value }}"
  become: true
  kolla_container:
    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