#419 Fix str-common-pkgs role failing on systems with dnf5
Merged by mvadkert. Opened by mvadkert.
fix-dnf5-pkg-manager  into  master

Download 419.patch

ansible-core 2.16+ detects ansible_pkg_mgr as 'dnf5' on systems where
dnf5 is the default package manager (Fedora 41+). The str-common-pkgs
role dynamically includes pkgs-{{ pkg_mgr }}.yml, which resolves to
pkgs-dnf5.yml — a file that does not exist.

Map 'dnf5' back to 'dnf' since pkgs-dnf.yml uses shell commands that
work identically with both dnf and dnf5.

Assisted-by: Claude Code

tested via: https://gitlab.com/testing-farm/gluetool-modules/-/merge_requests/1023 and it resolves the problem. With this standard-test-roles wokr even against rawhide \o/

Commit b6402e8d fixes this pull-request

Pull-Request has been merged by mvadkert

Pull-Request has been merged by mvadkert

Metadata