kolla-ansible/ansible/roles/service-images-pull/tasks/main.yml
Christian Berendt 73bc7ec71a Add service-images-pull tag to tasks in the service-images-pull role
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
2022-12-19 20:13:17 +01:00

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