2026-04-22 11:00:54 +00:00
|
|
|
---
|
|
|
|
|
- name: Pre-pull Rancher images into containerd
|
|
|
|
|
command: /usr/local/bin/ctr -n k8s.io images pull {{ item }}
|
|
|
|
|
register: rancher_image_pull
|
|
|
|
|
loop: "{{ rancher_images_to_prepull }}"
|
2026-04-23 06:41:21 +00:00
|
|
|
changed_when: rancher_image_pull.rc == 0
|
2026-04-22 11:33:13 +00:00
|
|
|
failed_when: false
|
2026-04-23 06:41:21 +00:00
|
|
|
|
|
|
|
|
- name: Report Rancher images that did not pre-pull
|
|
|
|
|
debug:
|
|
|
|
|
msg: >-
|
|
|
|
|
Rancher image pre-pull failed for {{ item.item }}: {{ item.stderr | default('no stderr') }}
|
|
|
|
|
loop: "{{ rancher_image_pull.results | default([]) }}"
|
|
|
|
|
loop_control:
|
|
|
|
|
label: "{{ item.item }}"
|
|
|
|
|
when: item.rc is defined and item.rc != 0
|