From 8a339411887969f0b4c0e9b127a098694b0e660e Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Fri, 21 Nov 2025 09:33:47 -0300 Subject: [PATCH] upstream CI: Fix CheckPR ansible-core version definition By using the 'ansible-version' variable as '<2.17' allows 'pip' to install the latest version of the 2.16 series, instead of version 2.16.0 in the case '==2.16'. This ensures we run the tests with the latest supported version for the specific distro. Signed-off-by: Rafael Guterres Jeffman --- infra/azure/pr-pipeline.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infra/azure/pr-pipeline.yml b/infra/azure/pr-pipeline.yml index 8eff18e3..5e5d4a07 100644 --- a/infra/azure/pr-pipeline.yml +++ b/infra/azure/pr-pipeline.yml @@ -12,11 +12,11 @@ parameters: - name: "distro_ansible_map" type: object default: - - { distro: "c8s", ansible_version: "2.16" } + - { distro: "c8s", ansible_version: "<2.17" } # c9s should use 2.14, but this version has an invalid certificate # and so is unsuable against ansible-galaxy. - - { distro: "c9s", ansible_version: "2.16" } - - { distro: "c10s", ansible_version: "2.16" } + - { distro: "c9s", ansible_version: "<2.17" } + - { distro: "c10s", ansible_version: "<2.17" } variables: distros: "fedora-latest,c10s,c9s,fedora-rawhide" @@ -62,6 +62,6 @@ stages: parameters: build_number: $(Build.BuildNumber) distro: ${{ config.distro }} - ansible_version: -core==${{ config.ansible_version }} + ansible_version: -core${{ config.ansible_version }} skip_git_test: false test_galaxy: false