|
|
|
@ -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 |
|
|
|
|