mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-20 20:50:12 -03:30
Support Fedora 41 (#12138)
* Add Fedora 41 CI support Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> * Docs: add fedora41 support Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> * Add Fedora 41 local vagrant test Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> * Fix: Fedora 41+ need python3-libdnf5 for package management Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com> --------- Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
This commit is contained in:
@@ -34,6 +34,17 @@
|
||||
tags:
|
||||
- bootstrap_os
|
||||
|
||||
# Remove this after ansible-core >= 2.19.0
|
||||
# See https://github.com/kubernetes-sigs/kubespray/pull/12138#issuecomment-3019304574
|
||||
- name: Install python3-libdnf5 on Fedora >= 41
|
||||
raw: >
|
||||
dnf install --assumeyes python3-libdnf5
|
||||
become: true
|
||||
retries: "{{ pkg_install_retries }}"
|
||||
when:
|
||||
- ansible_distribution == "Fedora"
|
||||
- ansible_distribution_major_version | int >= 41
|
||||
|
||||
- name: Manage packages
|
||||
package:
|
||||
name: "{{ item.packages | dict2items | selectattr('value', 'ansible.builtin.all') | map(attribute='key') }}"
|
||||
|
||||
Reference in New Issue
Block a user