2021-04-26 14:47:01 +08:00
|
|
|
---
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Nerdctl | Download nerdctl
|
2021-04-26 14:47:01 +08:00
|
|
|
include_tasks: "../../../download/tasks/download_file.yml"
|
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(downloads.nerdctl) }}"
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Nerdctl | Copy nerdctl binary from download dir
|
2021-04-26 14:47:01 +08:00
|
|
|
copy:
|
|
|
|
src: "{{ local_release_dir }}/nerdctl"
|
|
|
|
dest: "{{ bin_dir }}/nerdctl"
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0755"
|
2021-04-26 14:47:01 +08:00
|
|
|
remote_src: true
|
2022-02-02 07:11:48 +08:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
become: true
|
2021-04-26 14:47:01 +08:00
|
|
|
notify:
|
|
|
|
- Get nerdctl completion
|
|
|
|
- Install nerdctl completion
|
2022-02-02 07:11:48 +08:00
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Nerdctl | Create configuration dir
|
2022-02-02 07:11:48 +08:00
|
|
|
file:
|
|
|
|
path: /etc/nerdctl
|
|
|
|
state: directory
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0755"
|
2022-02-02 07:11:48 +08:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
become: true
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Nerdctl | Install nerdctl configuration
|
2022-02-02 07:11:48 +08:00
|
|
|
template:
|
|
|
|
src: nerdctl.toml.j2
|
|
|
|
dest: /etc/nerdctl/nerdctl.toml
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0644"
|
2022-02-02 07:11:48 +08:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
become: true
|