Download once for crio (#6998)

* download run once feature for CRI-O

* fix typo

* fix test
This commit is contained in:
Sergey
2020-12-21 12:54:25 +03:00
committed by GitHub
parent 7d7739e031
commit 096bcdd078
6 changed files with 30 additions and 10 deletions

View File

@@ -77,3 +77,7 @@ crun_runtime:
# When this is true, CRI-O package repositories are added. Set this to false when using an
# environment with preconfigured CRI-O package repositories.
crio_add_repos: true
# skopeo need for save/load images when download_run_once=true
skopeo_packages:
- "skopeo"

View File

@@ -73,6 +73,13 @@
dest: /etc/crio/crio.conf
register: config_install
- name: Add skopeo pkg to install
set_fact:
crio_packages: "{{ crio_packages + skopeo_packages }}"
when:
- not skip_downloads|default(false)
- download_run_once
- name: Install cri-o packages
package:
name: "{{ item }}"