Update 'prepare_k8s.yml'
This commit is contained in:
@@ -16,10 +16,16 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/containerd
|
path: /etc/containerd
|
||||||
state: directory
|
state: directory
|
||||||
|
- name: Get containerd default config
|
||||||
|
command: containerd config default
|
||||||
|
register: containerd_config
|
||||||
|
- name: Create containerd config
|
||||||
|
copy:
|
||||||
|
dst: /etc/containerd/config.toml
|
||||||
|
content: "{{containerd_config}}"
|
||||||
- name: Configure containerd
|
- name: Configure containerd
|
||||||
command: "{{ item }} chdir=/etc/"
|
command: "{{ item }} chdir=/etc/"
|
||||||
with_items:
|
with_items:
|
||||||
- containerd config default | tee /etc/containerd/config.toml
|
|
||||||
- sed -i 's/ SystemdCgroup = false/ SystemdCgroup = true/' /etc/containerd/config.toml
|
- sed -i 's/ SystemdCgroup = false/ SystemdCgroup = true/' /etc/containerd/config.toml
|
||||||
- name: Install CNI Plugins
|
- name: Install CNI Plugins
|
||||||
command: "{{ item }} chdir=/tmp"
|
command: "{{ item }} chdir=/tmp"
|
||||||
|
Reference in New Issue
Block a user