Add crun support (#6864)

Signed-off-by: Victor Morales <v.morales@samsung.com>
This commit is contained in:
Victor Morales
2020-12-01 11:00:50 -08:00
committed by GitHub
parent da5077fa5f
commit 4f7a760a94
9 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
crun_version: 0.15
crun_release_url: https://github.com/containers/crun/releases/download/{{ crun_version }}/crun-{{ crun_version }}-linux-{{ host_architecture }}
crun_bin_dir: /usr/bin/

View File

@@ -0,0 +1,19 @@
---
- name: Create binary destination folder
file:
mode: '0755'
state: directory
path: "{{ crun_bin_dir }}"
- name: Check if binary exists
stat:
path: "{{ crun_bin_dir }}/crun"
register: crun_stat
- name: Download binary
get_url:
url: "{{ crun_release_url }}"
dest: "{{ crun_bin_dir }}/crun"
mode: '0755'
when: not crun_stat.stat.exists