Files
ChengHao Yang 1863bfd3a7 [release-2.31] Fix pre-commit ansible-core 2.18 (#13292)
* Fix pre-commit ansible-core 2.18

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

* Fix duplicated task name "Test version"

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>

---------

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
2026-06-05 21:46:06 +05:30

24 lines
616 B
YAML

---
- 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 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