Use Ansible 2.22 for Python 3.15

Fedora Rawhide (46) provides Python 3.15 which breaks Ansible versions
prior to 2.22. As of today, Ansible 2.22 is not released yet, so we need
to use beta and release candidate versions at this time.

This patch will still work once the stable release is available, and
will allow the use of special versions in the future, if required.

Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
Rafael Guterres Jeffman
2026-10-09 12:08:35 -03:00
parent 268d4822f1
commit d9a498d5b6
4 changed files with 52 additions and 1 deletions
+14
View File
@@ -7,6 +7,7 @@ pool:
variables:
ansible_version: "-core >=2.18,<2.19"
ansible_rawhide_version: "-core >=2.22.0b0,<2.23"
ansible_latest: "-core"
ansible_minimum: "-core <2.16"
distros: "fedora-latest,c9s,c10s,fedora-rawhide"
@@ -47,6 +48,19 @@ stages:
skip_git_test: true
test_galaxy: false
# Fedora Rawhide requires the unreleased Ansible 2.22 series.
- stage: fedora_rawhide_ansible_2_22
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-rawhide
ansible_version: ${{ variables.ansible_rawhide_version }}
skip_git_test: true
test_galaxy: false
# Galaxy on Fedora
- stage: galaxy_fedora_latest_ansible_2_18
+10 -1
View File
@@ -12,7 +12,7 @@ trigger: none
pool:
vmImage: 'ubuntu-24.04'
variables: { distros: "fedora-latest,fedora-rawhide,c9s,c10s" }
variables: { distros: "fedora-latest,c9s,c10s" }
stages:
@@ -24,6 +24,15 @@ stages:
parameters:
distro: ${{ distro }}
# Fedora Rawhide requires the unreleased Ansible 2.22 series.
- stage: build_fedora_rawhide
dependsOn: []
jobs:
- template: templates/build_container.yml
parameters:
distro: fedora-rawhide
ansible_core_version: ">=2.22.0b0,<2.23"
# Special case for CentOS 8 Stream
- stage: CentOS_8_Stream
dependsOn: []
+14
View File
@@ -28,11 +28,25 @@ parameters:
variables:
distros: "fedora-latest,c10s,c9s,fedora-rawhide"
ansible_version: "-core >=2.18,<2.19"
ansible_rawhide_version: "-core >=2.22.0b0,<2.23"
ansible_latest: "-core"
ansible_minimum: "-core <2.16"
stages:
# Fedora Rawhide requires the unreleased Ansible 2.22 series.
- stage: fedora_rawhide_ansible_2_22
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-rawhide
ansible_version: ${{ variables.ansible_rawhide_version }}
skip_git_test: true
test_galaxy: false
# Minimum ansible
- ${{ each distro in split(variables.distros, ',') }}:
+14
View File
@@ -21,6 +21,7 @@ parameters:
variables:
distros: "fedora-latest,c10s,c9s,fedora-rawhide"
ansible_version: "-core >=2.18,<2.19"
ansible_rawhide_version: "-core >=2.22.0b0,<2.23"
stages:
@@ -38,6 +39,19 @@ stages:
skip_git_test: false
test_galaxy: false
# Fedora Rawhide requires the unreleased Ansible 2.22 series.
- stage: fedora_rawhide_ansible_2_22
dependsOn: []
jobs:
- template: templates/run_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-rawhide
ansible_version: ${{ variables.ansible_rawhide_version }}
skip_git_test: false
test_galaxy: false
# Galaxy on Fedora
- stage: galaxy_fedora_latest_ansible_2_18