From e35a3c34c21ad5ea150a9189d2a342bf09a88fb6 Mon Sep 17 00:00:00 2001 From: thebigbone Date: Mon, 24 Jun 2024 20:07:14 +0530 Subject: [PATCH] fix containerd config --- playbook.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/playbook.yml b/playbook.yml index d2bd8b3..452610d 100644 --- a/playbook.yml +++ b/playbook.yml @@ -36,12 +36,8 @@ - name: move it (can't directly create on /etc/containerd for some reason) command: mv $HOME/config.toml /etc/containerd/config.toml - - - name: modify containerd.toml - lineinfile: - path: /etc/containerd/config.toml - regexp: '^SystemdCgroup =' - line: 'SystemdCgroup = true' # fix this shit, its not replacing the correct SystemdCgroup + - name: update the containerd config.toml file + command: sed -i 's/SystemdCgroup \= false/SystemdCgroup \= true/g' /etc/containerd/config.toml - name: turn off swap command: swapoff -a