Use cgroupsv2 where available (fedora) (#8237)
* Containerd: use cgroupsv2 where available (fedora) * Docker: use cgroupsv2 where available (fedora) * cri-o: use cgroupsv2 where available (fedora)
This commit is contained in:
parent
a98ca6fcf3
commit
c98a07825b
3 changed files with 0 additions and 46 deletions
|
@ -5,22 +5,6 @@
|
||||||
when:
|
when:
|
||||||
- ansible_distribution not in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Rocky", "Amazon", "Flatcar", "Flatcar Container Linux by Kinvolk", "Suse", "openSUSE Leap", "openSUSE Tumbleweed"]
|
- ansible_distribution not in ["CentOS", "OracleLinux", "RedHat", "Ubuntu", "Debian", "Fedora", "AlmaLinux", "Rocky", "Amazon", "Flatcar", "Flatcar Container Linux by Kinvolk", "Suse", "openSUSE Leap", "openSUSE Tumbleweed"]
|
||||||
|
|
||||||
- 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
|
- name: containerd | Remove any package manager controlled containerd package
|
||||||
package:
|
package:
|
||||||
name: "{{ containerd_package }}"
|
name: "{{ containerd_package }}"
|
||||||
|
|
|
@ -35,22 +35,6 @@
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
- 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: import crio repo
|
- name: import crio repo
|
||||||
import_tasks: "crio_repo.yml"
|
import_tasks: "crio_repo.yml"
|
||||||
when: crio_add_repos
|
when: crio_add_repos
|
||||||
|
|
|
@ -40,20 +40,6 @@
|
||||||
tags:
|
tags:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
- 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'
|
|
||||||
|
|
||||||
- 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'
|
|
||||||
|
|
||||||
- import_tasks: pre-upgrade.yml
|
- import_tasks: pre-upgrade.yml
|
||||||
|
|
||||||
- name: ensure docker-ce repository public key is installed
|
- name: ensure docker-ce repository public key is installed
|
||||||
|
|
Loading…
Reference in a new issue