downloads: split file and containers (#13581)

Splits the definitions into two dicts, while joining then for now to
preserve the downloads dict.

Update all consumers of the variables, which are roughly:
- manual includes of the download role (which will be removed in the
  short future)
- install tasks using the resolved 'dest' to find the artefacts

This will make further division of the downloads role easier.
This commit is contained in:
Max Gautier
2026-10-13 09:58:21 +00:00
committed by GitHub
parent 40d5c77c8e
commit 1011c240b4
25 changed files with 315 additions and 376 deletions
@@ -2,11 +2,11 @@
- name: Containerd | Download containerd
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.containerd) }}"
download: "{{ download_defaults | combine(downloads_file.containerd) }}"
- name: Containerd | Unpack containerd archive
unarchive:
src: "{{ downloads.containerd.dest }}"
src: "{{ downloads_file.containerd.dest }}"
dest: "{{ containerd_bin_dir }}"
mode: "0755"
remote_src: true
@@ -2,7 +2,7 @@
- name: Runc | Download cri-dockerd binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.cri_dockerd) }}"
download: "{{ download_defaults | combine(downloads_file.cri_dockerd) }}"
- name: Copy cri-dockerd binary from download dir
copy:
+1 -1
View File
@@ -24,7 +24,7 @@
- name: Cri-o | Download cri-o
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.crio) }}"
download: "{{ download_defaults | combine(downloads_file.crio) }}"
- name: Cri-o | special handling for amazon linux
import_tasks: "setup-amazon.yaml"
+1 -1
View File
@@ -2,7 +2,7 @@
- name: Crictl | Download crictl
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.crictl) }}"
download: "{{ download_defaults | combine(downloads_file.crictl) }}"
- name: Install crictl config
template:
+2 -2
View File
@@ -2,11 +2,11 @@
- name: Crun | Download crun binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.crun) }}"
download: "{{ download_defaults | combine(downloads_file.crun) }}"
- name: Copy crun binary from download dir
copy:
src: "{{ downloads.crun.dest }}"
src: "{{ downloads_file.crun.dest }}"
dest: "{{ bin_dir }}/crun"
mode: "0755"
remote_src: true
+4 -4
View File
@@ -2,12 +2,12 @@
- name: GVisor | Download runsc binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.gvisor_runsc) }}"
download: "{{ download_defaults | combine(downloads_file.gvisor_runsc) }}"
- name: GVisor | Download containerd-shim-runsc-v1 binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.gvisor_containerd_shim) }}"
download: "{{ download_defaults | combine(downloads_file.gvisor_containerd_shim) }}"
- name: GVisor | Copy binaries
copy:
@@ -16,5 +16,5 @@
mode: "0755"
remote_src: true
with_items:
- { src: "{{ downloads.gvisor_runsc.dest }}", dest: "runsc" }
- { src: "{{ downloads.gvisor_containerd_shim.dest }}", dest: "containerd-shim-runsc-v1" }
- { src: "{{ downloads_file.gvisor_runsc.dest }}", dest: "runsc" }
- { src: "{{ downloads_file.gvisor_containerd_shim.dest }}", dest: "containerd-shim-runsc-v1" }
@@ -2,11 +2,11 @@
- name: Kata-containers | Download kata binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.kata_containers) }}"
download: "{{ download_defaults | combine(downloads_file.kata_containers) }}"
- name: Kata-containers | Copy kata-containers binary
unarchive:
src: "{{ downloads.kata_containers.dest }}"
src: "{{ downloads_file.kata_containers.dest }}"
dest: "/"
mode: "0755"
owner: root
+1 -1
View File
@@ -16,7 +16,7 @@
- name: Download CNI
include_tasks: "../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.cni) }}"
download: "{{ download_defaults | combine(downloads_file.cni) }}"
- name: Prepare CNI
hosts: all
@@ -2,7 +2,7 @@
- name: Nerdctl | Download nerdctl
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.nerdctl) }}"
download: "{{ download_defaults | combine(downloads_file.nerdctl) }}"
- name: Nerdctl | Copy nerdctl binary from download dir
copy:
+2 -2
View File
@@ -30,11 +30,11 @@
- name: Runc | Download runc binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.runc) }}"
download: "{{ download_defaults | combine(downloads_file.runc) }}"
- name: Copy runc binary from download dir
copy:
src: "{{ downloads.runc.dest }}"
src: "{{ downloads_file.runc.dest }}"
dest: "{{ runc_bin_dir }}/runc"
mode: "0755"
remote_src: true
+2 -2
View File
@@ -22,11 +22,11 @@
- name: Skopeo | Download skopeo binary
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.skopeo) }}"
download: "{{ download_defaults | combine(downloads_file.skopeo) }}"
- name: Copy skopeo binary from download dir
copy:
src: "{{ downloads.skopeo.dest }}"
src: "{{ downloads_file.skopeo.dest }}"
dest: "{{ bin_dir }}/skopeo"
mode: "0755"
remote_src: true
+1 -1
View File
@@ -2,7 +2,7 @@
- name: Youki | Download youki
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads.youki) }}"
download: "{{ download_defaults | combine(downloads_file.youki) }}"
- name: Youki | Copy youki binary from download dir
copy: