Fix containerd 2.x configuration (#11963)

Signed-off-by: ekko <lihai.tu@daocloud.io>
This commit is contained in:
Ekko
2025-02-18 13:42:11 +08:00
committed by GitHub
parent 011e839f52
commit 31c470137f
3 changed files with 130 additions and 40 deletions

View File

@@ -108,7 +108,7 @@
- name: Containerd | Copy containerd config file
template:
src: config.toml.j2
src: "{{ 'config.toml.j2' if containerd_version is version('2.0.0', '>=') else 'config-v1.toml.j2' }}"
dest: "{{ containerd_cfg_dir }}/config.toml"
owner: "root"
mode: "0640"