Update 'prepare_k8s.yml'

master
alecsandru 9 months ago
parent d6c519cf05
commit bd863cfcb4
  1. 5
      prepare_k8s.yml

@ -12,10 +12,13 @@
package:
name: runc
state: present
- name: Creates directory
ansible.builtin.file:
path: /etc/containerd
state: directory
- name: Configure containerd
command: "{{ item }} chdir=/etc/"
with_items:
- mkdir /etc/containerd
- sudo containerd config default | tee /etc/containerd/config.toml
- sudo sed -i 's/ SystemdCgroup = false/ SystemdCgroup = true/' /etc/containerd/config.toml
- name: Install CNI Plugins

Loading…
Cancel
Save