Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions images/capi/ansible/roles/containerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,31 @@
checksum: sha256:{{ containerd_url }}.sha256sum
dest: /tmp/{{ containerd_filename }}
mode: "0600"
register: containerd_download
until: containerd_download is not failed
retries: 5
delay: 3

- name: Download containerd.service
ansible.builtin.get_url:
url: "{{ containerd_service_url }}"
dest: /tmp/containerd.service
mode: "0600"
register: containerd_service_download
until: containerd_service_download is not failed
retries: 5
delay: 3

- name: Download runc
ansible.builtin.get_url:
url: "{{ containerd_runc_url }}"
checksum: sha256:{{ containerd_runc_checksum_url }}
dest: /tmp/runc
mode: "0600"
register: containerd_runc_download
until: containerd_runc_download is not failed
retries: 5
delay: 3

- name: Download containerd-wasm-shims
vars:
Expand All @@ -57,6 +69,10 @@
mode: "0600"
when: containerd_wasm_shims_runtimes | length > 0
loop: "{{ containerd_wasm_shims_runtimes | split(',') }}"
register: containerd_wasm_shims_download
until: containerd_wasm_shims_download is not failed
retries: 5
delay: 3

- name: Create a directory if it does not exist
ansible.builtin.file:
Expand Down Expand Up @@ -254,6 +270,10 @@
- runsc
- containerd-shim-runsc-v1
when: containerd_gvisor_runtime | bool
register: containerd_gvisor_download
until: containerd_gvisor_download is not failed
retries: 5
delay: 3

- name: Install runsc as a runtime
ansible.builtin.command:
Expand Down
2 changes: 2 additions & 0 deletions images/capi/ansible/roles/gpu/tasks/flatcar-nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
owner: root
group: root
mode: "0644"
register: gpu_flatcar_nvidia_runtime_download
until: gpu_flatcar_nvidia_runtime_download is not failed
retries: 5
delay: 3

Expand Down
4 changes: 4 additions & 0 deletions images/capi/ansible/roles/kubernetes/tasks/crictl-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
checksum: sha256:{{ crictl_url }}.sha256
dest: /tmp/{{ crictl_filename }}
mode: "0600"
register: crictl_download
until: crictl_download is not failed
retries: 5
delay: 3

- name: Create crictl bin directory
ansible.builtin.file:
Expand Down
12 changes: 12 additions & 0 deletions images/capi/ansible/roles/kubernetes/tasks/url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
mode: "0755"
owner: root
group: root
register: kubernetes_cni_tarball_download
until: kubernetes_cni_tarball_download is not failed
retries: 5
delay: 3

- name: Install CNI
ansible.builtin.unarchive:
Expand All @@ -49,6 +53,10 @@
owner: root
group: root
loop: "{{ kubernetes_bins }}"
register: kubernetes_bins_download
until: kubernetes_bins_download is not failed
retries: 5
delay: 3

- name: Download Kubernetes images
ansible.builtin.get_url:
Expand All @@ -57,6 +65,10 @@
dest: /tmp/{{ item }}
mode: "0600"
loop: "{{ kubernetes_imgs }}"
register: kubernetes_imgs_download
until: kubernetes_imgs_download is not failed
retries: 5
delay: 3

- name: Copy Kubernetes image modification script
ansible.builtin.copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
dest: "{{ additional_executables_destination_path }}"
mode: "0711"
loop: "{{ additional_executables_list.split(',') }}"
register: additional_executables_download
until: additional_executables_download is not failed
retries: 5
delay: 3
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
mode: "0600"
register: images
loop: "{{ additional_url_images_list.split(',') }}"
until: images is not failed
retries: 5
delay: 3

Expand Down