crio: molecule: move variables to inventory

Fix download/file (which needs the variable to determine the correct
binaries)
This commit is contained in:
Max Gautier
2025-11-04 09:27:00 +01:00
parent b4fe577203
commit 5183679a89
3 changed files with 4 additions and 3 deletions

View File

@@ -2,8 +2,6 @@
- name: Converge - name: Converge
hosts: all hosts: all
become: true become: true
vars:
container_manager: crio
roles: roles:
- role: kubespray_defaults - role: kubespray_defaults
- role: container-engine/cri-o - role: container-engine/cri-o

View File

@@ -41,6 +41,10 @@ provisioner:
defaults: defaults:
callbacks_enabled: profile_tasks callbacks_enabled: profile_tasks
timeout: 120 timeout: 120
inventory:
group_vars:
k8s_cluster:
container_manager: crio
playbooks: playbooks:
create: ../../../../../tests/cloud_playbooks/create-kubevirt.yml create: ../../../../../tests/cloud_playbooks/create-kubevirt.yml
prepare: ../../../molecule/prepare.yml prepare: ../../../molecule/prepare.yml

View File

@@ -2,7 +2,6 @@
- name: Test CRI-O cri - name: Test CRI-O cri
import_playbook: ../../../molecule/test_cri.yml import_playbook: ../../../molecule/test_cri.yml
vars: vars:
container_manager: crio
cri_socket: unix:///var/run/crio/crio.sock cri_socket: unix:///var/run/crio/crio.sock
cri_name: cri-o cri_name: cri-o
- name: Test running a container with crun - name: Test running a container with crun