2020-12-01 19:00:50 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: crun | Copy runtime class manifest
|
2021-03-02 09:57:19 +00:00
|
|
|
template:
|
2020-12-01 19:00:50 +00:00
|
|
|
src: runtimeclass-crun.yml
|
|
|
|
dest: "{{ kube_config_dir }}/runtimeclass-crun.yml"
|
2021-03-02 09:57:19 +00:00
|
|
|
mode: "0664"
|
2020-12-01 19:00:50 +00:00
|
|
|
when:
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
2020-12-01 19:00:50 +00:00
|
|
|
|
|
|
|
- name: crun | Apply manifests
|
|
|
|
kube:
|
|
|
|
name: "runtimeclass-crun"
|
|
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
|
|
resource: "runtimeclass"
|
|
|
|
filename: "{{ kube_config_dir }}/runtimeclass-crun.yml"
|
|
|
|
state: "latest"
|
|
|
|
when:
|
2021-03-24 00:26:05 +00:00
|
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|