Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions roles/common/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,20 @@
tags:
- docker

- name: Make sure SystemdCrgoup is the desired one
lineinfile:
dest: /etc/containerd/config.toml
regexp: '^(.*)SystemdCgroup = .*$'
line: '\1SystemdCgroup = {{ containerd.systemd_cgroup | default ("false") }}'
backrefs: yes
when:
- containerd is defined
- containerd.systemd_cgroup is defined
notify:
- Restart containerd
tags:
- docker

when:
- ansible_os_family == "Debian" or ( ansible_os_family == "RedHat" and old_docker is undefined )
## END of Debian/Ubuntu block
Expand Down