Skip to content

Commit

Permalink
Containerd: use cgroupsv2 where available (fedora)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristicalin committed Nov 27, 2021
1 parent a5f88e1 commit 424190c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions roles/container-engine/containerd/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,6 @@
when:
- not ansible_distribution in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Rocky", "Amazon", "Flatcar", "Flatcar Container Linux by Kinvolk"]

- name: disable unified_cgroup_hierarchy in Fedora 31+
command: grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"
when:
- ansible_distribution == "Fedora"
- (ansible_distribution_major_version | int) >= 31
- ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] is not defined or ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] != '0'
- not is_ostree

- name: reboot in Fedora 31+
reboot:
when:
- ansible_distribution == "Fedora"
- (ansible_distribution_major_version | int) >= 31
- ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] is not defined or ansible_proc_cmdline['systemd.unified_cgroup_hierarchy'] != '0'
- not is_ostree

- name: containerd | Remove any package manager controlled containerd package
package:
name: "{{ containerd_package }}"
Expand Down

0 comments on commit 424190c

Please sign in to comment.