Deprecate Ansible 2, make Ansible 5 default

Change-Id: I2576d0dcec7c8f7bbb76bdd469fd992874742edc
This commit is contained in:
James E. Blair 2022-08-17 15:12:42 -07:00
parent 725b2b3b87
commit ad03402dec
4 changed files with 11 additions and 4 deletions

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Ansible versions 2.8 and 2.9 are now deprecated in Zuul since they
are both unmaintaned. Ansible 5 is now the default version in Zuul.

View File

@ -25,7 +25,7 @@
parent: ansible-version
vars:
test_ansible_version_major: 2
test_ansible_version_minor: 9
test_ansible_version_minor: 12
# This job is used by a test case specifying a different ansible version in
# zuul.conf

View File

@ -1066,7 +1066,7 @@ class TestWeb(BaseTestWeb):
job_params = {
'job': 'project-test1',
'ansible_version': '2.9',
'ansible_version': '5',
'timeout': None,
'post_timeout': None,
'items': [],
@ -1164,7 +1164,7 @@ class TestWeb(BaseTestWeb):
"noop")
job_params = {
'ansible_version': '2.9',
'ansible_version': '5',
'branch': 'master',
'extra_vars': {},
'group_vars': {},

View File

@ -1,6 +1,6 @@
# This file describes the currently supported ansible versions
[common]
default_version = 2.9
default_version = 5
# OpenStackSDK 0.99.0 coincides with CORS header problems in some providers
requirements = openstacksdk<0.99 openshift jmespath google-cloud-storage pywinrm boto3 azure-storage-blob ibm-cos-sdk netaddr passlib
@ -8,11 +8,13 @@ requirements = openstacksdk<0.99 openshift jmespath google-cloud-storage pywinrm
# Ansible 2.8.16 breaks the k8s connection plugin
# Jinja 3.1.1 is incompatible with 2.8
requirements = ansible>=2.8,<2.9,!=2.8.16 Jinja2<3.1.0
deprecated = true
[2.9]
# Ansible 2.9.14 breaks the k8s connection plugin
# https://github.com/ansible/ansible/issues/72171
requirements = ansible>=2.9,<2.10,!=2.9.14
deprecated = true
[5]
requirements = ansible>=5.0,<6.0