diff --git a/prepare_k8s.yml b/prepare_k8s.yml index ad199a0..81a7a4b 100644 --- a/prepare_k8s.yml +++ b/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