2021-04-26 06:47:01 +00:00
|
|
|
---
|
|
|
|
- name: nerdctl | Download nerdctl
|
|
|
|
include_tasks: "../../../download/tasks/download_file.yml"
|
|
|
|
vars:
|
|
|
|
download: "{{ download_defaults | combine(downloads.nerdctl) }}"
|
|
|
|
|
|
|
|
- name: nerdctl | Copy nerdctl binary from download dir
|
|
|
|
copy:
|
|
|
|
src: "{{ local_release_dir }}/nerdctl"
|
|
|
|
dest: "{{ bin_dir }}/nerdctl"
|
|
|
|
mode: 0755
|
|
|
|
remote_src: true
|
2022-02-01 23:11:48 +00:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
become: true
|
2021-04-26 06:47:01 +00:00
|
|
|
notify:
|
|
|
|
- Get nerdctl completion
|
|
|
|
- Install nerdctl completion
|
2022-02-01 23:11:48 +00:00
|
|
|
|
|
|
|
- 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
|