From bd863cfcb4c195262df37efd6ee290c800d3751b Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 20:15:24 +0000 Subject: [PATCH] Update 'prepare_k8s.yml' --- prepare_k8s.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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