Drop support for Fedora 28 and add Fedora 30 and 31 (#5969)

This commit is contained in:
Maxime Guyot
2020-04-18 15:35:36 +02:00
committed by GitHub
parent 56a9c7a802
commit 3134dd4c0d
10 changed files with 77 additions and 28 deletions

View File

@@ -47,6 +47,21 @@
tags:
- facts
- name: disable unified_cgroup_hierarchy in Fedora 31+
shell:
cmd: 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
- name: ensure docker-ce repository public key is installed