2026-04-23 05:55:14 +00:00
|
|
|
---
|
|
|
|
|
- name: Pre-pull bootstrap images into containerd
|
2026-04-24 11:07:13 +00:00
|
|
|
command: timeout 180s /usr/local/bin/ctr -n k8s.io images pull {{ item }}
|
2026-04-23 05:55:14 +00:00
|
|
|
register: bootstrap_image_pull
|
|
|
|
|
loop: "{{ bootstrap_prepull_images }}"
|
2026-04-24 11:07:13 +00:00
|
|
|
retries: 6
|
|
|
|
|
delay: 20
|
|
|
|
|
until: bootstrap_image_pull.rc == 0
|
2026-04-23 06:41:21 +00:00
|
|
|
changed_when: bootstrap_image_pull.rc == 0
|
2026-04-23 05:55:14 +00:00
|
|
|
failed_when: false
|
2026-04-23 06:41:21 +00:00
|
|
|
|
2026-04-24 11:07:13 +00:00
|
|
|
- name: Report bootstrap images that did not pre-pull after retries
|
2026-04-23 06:41:21 +00:00
|
|
|
debug:
|
|
|
|
|
msg: >-
|
2026-04-24 11:07:13 +00:00
|
|
|
Best-effort bootstrap image pre-pull did not complete for {{ item.item }} after
|
|
|
|
|
{{ item.attempts | default(1) }} attempt(s): {{ item.stderr | default('no stderr') }}
|
2026-04-23 06:41:21 +00:00
|
|
|
loop: "{{ bootstrap_image_pull.results | default([]) }}"
|
|
|
|
|
loop_control:
|
|
|
|
|
label: "{{ item.item }}"
|
|
|
|
|
when: item.rc is defined and item.rc != 0
|