mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-22 13:36:06 -03:30
Download once for crio (#6998)
* download run once feature for CRI-O * fix typo * fix test
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user