Skip to content

Commit

Permalink
fix crun installation
Browse files Browse the repository at this point in the history
  • Loading branch information
rlex committed Dec 22, 2023
1 parent 662fd15 commit 49a4923
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/crun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
when:
- k3s_install_mode == "online"
block:
- name: Download gvisor runsc
- name: Download crun binary
ansible.builtin.get_url:
url: https://github.com/containers/crun/releases/download/{{ crun_version }}/crun-{{ crun_version }}-linux-{{ k3s_arch }}
url: https://github.com/containers/crun/releases/download/{{ k3s_crun_version }}/crun-{{ k3s_crun_version }}-linux-{{ k3s_arch }}
dest: /usr/local/bin/crun
owner: root
group: root
Expand All @@ -17,15 +17,15 @@
block:
- name: Download crun binary to localhost
ansible.builtin.get_url:
url: https://github.com/containers/crun/releases/download/{{ crun_version }}/crun-{{ crun_version }}-linux-{{ k3s_arch }}
url: https://github.com/containers/crun/releases/download/{{ k3s_crun_version }}/crun-{{ crun_version }}-linux-{{ k3s_arch }}
dest: /tmp/crun-{{ k3s_crun_version }}-{{ k3s_arch }}
mode: "0755"
delegate_to: localhost

- name: Transfer crun binary to target system
ansible.builtin.copy:
src: /tmp/crun-{{ k3s_crun_version }}-{{ k3s_arch }}
dest: /usr/local/bin/k3s
dest: /usr/local/bin/crun
mode: "0755"
owner: root
group: root
Expand Down

0 comments on commit 49a4923

Please sign in to comment.