mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 08:54:30 +00:00
18 lines
492 B
YAML
18 lines
492 B
YAML
---
|
|
|
|
- name: Verify k3s container runtime is available
|
|
ansible.builtin.command: k3s ctr -n k8s.io version
|
|
register: _k3s_ctr_version
|
|
changed_when: false
|
|
failed_when: false
|
|
|
|
- name: Import image tarballs into k3s containerd
|
|
ansible.builtin.include_tasks: import_image.yml
|
|
loop: "{{ k3s_import_images }}"
|
|
loop_control:
|
|
loop_var: k3s_import_image
|
|
label: "{{ k3s_import_image.path | basename }}"
|
|
when:
|
|
- _k3s_ctr_version.rc == 0
|
|
- (k3s_import_images | length) > 0
|