mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
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 <rjeffman@redhat.com>
This commit is contained in:
@@ -12,11 +12,11 @@ parameters:
|
|||||||
- name: "distro_ansible_map"
|
- name: "distro_ansible_map"
|
||||||
type: object
|
type: object
|
||||||
default:
|
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
|
# c9s should use 2.14, but this version has an invalid certificate
|
||||||
# and so is unsuable against ansible-galaxy.
|
# and so is unsuable against ansible-galaxy.
|
||||||
- { distro: "c9s", ansible_version: "2.16" }
|
- { distro: "c9s", ansible_version: "<2.17" }
|
||||||
- { distro: "c10s", ansible_version: "2.16" }
|
- { distro: "c10s", ansible_version: "<2.17" }
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
distros: "fedora-latest,c10s,c9s,fedora-rawhide"
|
distros: "fedora-latest,c10s,c9s,fedora-rawhide"
|
||||||
@@ -62,6 +62,6 @@ stages:
|
|||||||
parameters:
|
parameters:
|
||||||
build_number: $(Build.BuildNumber)
|
build_number: $(Build.BuildNumber)
|
||||||
distro: ${{ config.distro }}
|
distro: ${{ config.distro }}
|
||||||
ansible_version: -core==${{ config.ansible_version }}
|
ansible_version: -core${{ config.ansible_version }}
|
||||||
skip_git_test: false
|
skip_git_test: false
|
||||||
test_galaxy: false
|
test_galaxy: false
|
||||||
|
|||||||
Reference in New Issue
Block a user