Files
ansible-freeipa/infra/azure/azure-pipelines.yml
T
Rafael Guterres Jeffman d9a498d5b6 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>
2026-10-09 12:08:35 -03:00

88 lines
2.1 KiB
YAML

---
trigger:
- master
pool:
vmImage: 'ubuntu-24.04'
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"
stages:
- stage: fedora_latest_ansible_latest
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-latest
ansible_version: ${{ variables.ansible_latest }}
skip_git_test: true
- stage: fedora_latest_ansible_2_15
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-latest
ansible_version: ${{ variables.ansbile_minimum }}
skip_git_test: true
# Supported distros
- ${{ each distro in split(variables.distros, ',') }}:
- stage: ${{ replace(distro, '-', '_') }}_ansible_2_18
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: ${{ distro }}
ansible_version: ${{ variables.ansible_version }}
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
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: fedora-latest
ansible_version: ${{ variables.ansible_version }}
skip_git_test: true
test_galaxy: true
# CentOS 8 Stream, latest supported Ansible version.
- stage: c8s_ansible_2_16
dependsOn: []
jobs:
- template: templates/group_tests.yml
parameters:
build_number: $(Build.BuildNumber)
distro: c8s
ansible_version: "-core <2.17"
skip_git_test: true