mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-10-29 22:03:22 -02:30
The molecule_run.sh isn't really needed since the switch to gitlab-ci matrix runs. Also use the inventory variables pattern for kata-containers.
33 lines
852 B
YAML
33 lines
852 B
YAML
---
|
|
- name: Test kata-containers
|
|
hosts: all
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Get kubespray defaults
|
|
import_role:
|
|
name: ../../../../../kubespray_defaults
|
|
- name: Get OS facts (needed for bin_dir resolution)
|
|
setup:
|
|
gather_subset:
|
|
- '!all'
|
|
- '!min'
|
|
- 'distribution'
|
|
- name: Test version
|
|
command: "/opt/kata/bin/kata-runtime version"
|
|
register: version
|
|
failed_when: >
|
|
version is failed or
|
|
'kata-runtime' not in version.stdout
|
|
- name: Test version check
|
|
command: "/opt/kata/bin/kata-runtime check"
|
|
register: check
|
|
failed_when: >
|
|
check is failed or
|
|
'System is capable of running' not in check.stdout
|
|
|
|
- name: Test run container
|
|
import_playbook: ../../../molecule/test_runtime.yml
|
|
vars:
|
|
container_runtime: kata-qemu
|
|
container_manager: containerd
|