Convert alternatives runtimes molecule to ansible verifier

This commit is contained in:
Max Gautier
2025-06-13 17:41:03 +02:00
parent 1ccb3a38a2
commit 5671037b0e
9 changed files with 64 additions and 98 deletions

View File

@@ -0,0 +1,23 @@
---
- name: Test kata-containers
hosts: all
gather_facts: false
tasks:
- 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
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