c12s-kubespray/roles/container-engine/kata-containers/tasks/main.yml
Pasquale Toscano 8f5c4dcd2e
Add support for Kata Containers (#6256)
* Install Kata Containers as additional container runtime

* Create RuntimeClasses for Kata Containers

* Updated Vagrant to optionally run without Docker as container manager

* Updated Vagrant to optionally use Libvirt nested virtualization

* Add Kata Containers documentation

* Fix lint errors

* Add kata_containers_enabled to kubespray-defaults

* Fixed typo error

* Fixed typo error
2020-06-22 00:28:39 -07:00

29 lines
629 B
YAML

---
- name: Download artifacts
unarchive:
src: "{{ kata_containers_release_url }}"
dest: /
remote_src: true
- name: Create config directory
file:
path: "{{ kata_containers_config_dir }}"
state: directory
- name: Set configuration
template:
src: "{{ item }}.j2"
dest: "{{ kata_containers_config_dir }}/{{ item }}"
with_items:
- configuration-qemu.toml
- name: Set containerd bin
vars:
shim: "{{ item }}"
template:
dest: "{{ kata_containers_containerd_bin_dir }}/containerd-shim-kata-{{ item }}-v2"
src: containerd-shim-kata-v2.j2
mode: 0755
with_items:
- qemu