Files
kubespray/roles/container-engine/nerdctl/tasks/main.yml
T
Max Gautier 1011c240b4 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.
2026-10-13 09:58:21 +00:00

37 lines
827 B
YAML

---
- name: Nerdctl | Download nerdctl
include_tasks: "../../../download/tasks/download_file.yml"
vars:
download: "{{ download_defaults | combine(downloads_file.nerdctl) }}"
- name: Nerdctl | Copy nerdctl binary from download dir
copy:
src: "{{ local_release_dir }}/nerdctl"
dest: "{{ bin_dir }}/nerdctl"
mode: "0755"
remote_src: true
owner: root
group: root
become: true
notify:
- Get nerdctl completion
- Install nerdctl completion
- name: Nerdctl | Create configuration dir
file:
path: /etc/nerdctl
state: directory
mode: "0755"
owner: root
group: root
become: true
- name: Nerdctl | Install nerdctl configuration
template:
src: nerdctl.toml.j2
dest: /etc/nerdctl/nerdctl.toml
mode: "0644"
owner: root
group: root
become: true