Skip to content

Commit

Permalink
fix: allows cgroups v2 by default for flatcar
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Sep 15, 2022
1 parent 5c9997f commit c890621
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions ansible/roles/containerd/tasks/install-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,3 @@
copy:
content: "export PATH=$PATH:/run/torcx/unpack/docker/bin/"
dest: "/etc/profile.d/my_path.sh"

- name: ensure cgroups v2 are disabled
command: grep -q systemd.unified_cgroup_hierarchy=0 /usr/share/oem/grub.cfg
changed_when: no
failed_when: false
register: cgroupsv2_check

- name: cgroups setup
when:
- cgroupsv2_check.rc != 0
block:
- name: disable cgroups v2
command: sed -E -i 's/^(set linux_append=.*)"$/\1 systemd.unified_cgroup_hierarchy=0 systemd.legacy_systemd_cgroup_controller"/g' /usr/share/oem/grub.cfg

0 comments on commit c890621

Please sign in to comment.