diff --git a/roles/container-engine/containerd/molecule/default/molecule.yml b/roles/container-engine/containerd/molecule/default/molecule.yml index 48f7b5dd027..f285da1cb00 100644 --- a/roles/container-engine/containerd/molecule/default/molecule.yml +++ b/roles/container-engine/containerd/molecule/default/molecule.yml @@ -7,12 +7,30 @@ lint: | set -e yamllint -c ../../../.yamllint . platforms: - - name: ubuntu18 - box: generic/ubuntu1804 - cpus: 2 + - name: ubuntu20 + box: generic/ubuntu2004 + cpus: 1 memory: 1024 groups: - kube_control_plane + - kube_node + - k8s_cluster + - name: debian11 + box: generic/debian11 + cpus: 1 + memory: 1024 + groups: + - kube_control_plane + - kube_node + - k8s_cluster + - name: centos8 + box: generic/centos8 + cpus: 1 + memory: 1024 + groups: + - kube_control_plane + - kube_node + - k8s_cluster provisioner: name: ansible env: diff --git a/roles/container-engine/containerd/molecule/default/prepare.yml b/roles/container-engine/containerd/molecule/default/prepare.yml index 1afc51a047c..aef05228d80 100644 --- a/roles/container-engine/containerd/molecule/default/prepare.yml +++ b/roles/container-engine/containerd/molecule/default/prepare.yml @@ -2,5 +2,10 @@ - name: Prepare hosts: all gather_facts: False + become: true + vars: + ignore_assert_errors: true roles: + - role: kubespray-defaults - role: bootstrap-os + - { role: kubernetes/preinstall, tags: ["bootstrap-os"] }