From 748aa9012ebbdb3c49fed7d0032d6103d9265736 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 20:24:10 +0000 Subject: [PATCH] Update 'prepare_k8s.yml' --- prepare_k8s.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/prepare_k8s.yml b/prepare_k8s.yml index 6bbfeb5..07e7763 100644 --- a/prepare_k8s.yml +++ b/prepare_k8s.yml @@ -16,10 +16,16 @@ ansible.builtin.file: path: /etc/containerd 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 command: "{{ item }} chdir=/etc/" with_items: - - containerd config default | tee /etc/containerd/config.toml - sed -i 's/ SystemdCgroup = false/ SystemdCgroup = true/' /etc/containerd/config.toml - name: Install CNI Plugins command: "{{ item }} chdir=/tmp"