distro: Install ansible for sap on 8.5 as well

This commit is contained in:
Brian C. Lane 2022-11-08 16:44:34 -08:00 committed by Tomáš Hozza
parent e4f7e94dd0
commit f9b3f95615

View file

@ -1,6 +1,7 @@
package rhel8
import (
"github.com/osbuild/osbuild-composer/internal/common"
"github.com/osbuild/osbuild-composer/internal/distro"
"github.com/osbuild/osbuild-composer/internal/osbuild"
"github.com/osbuild/osbuild-composer/internal/rpmmd"
@ -159,7 +160,7 @@ func SapPackageSet(t *imageType) rpmmd.PackageSet {
},
}
if t.arch.distro.osVersion == "8.4" {
if common.VersionLessThan(t.arch.distro.osVersion, "8.6") {
packageSet = packageSet.Append(rpmmd.PackageSet{
Include: []string{"ansible"},
})