Bump up Ansible supported versions

This change bumps up the maximum supported Ansible version to 5.x
(ansible-core 2.12.x) and minimum to 4.x. This synchronises Kayobe with
Kolla Ansible (see change Ia373f9cc3bb69eba0288bbb3e497e8cadb7cc4d3).

ansible 5 / ansible-core 2.12 raises the minimum version of Python to
3.8, so CentOS Stream 8 environments will typically get ansible 4 /
ansible-core 2.11.

Change-Id: If4477e7fa4c022ead6cda4a34a72b342f115936f
This commit is contained in:
Mark Goddard 2022-01-27 17:20:44 +00:00
parent abb2edd8a0
commit fb5649bd2f
4 changed files with 21 additions and 5 deletions

View File

@ -98,7 +98,7 @@
# Limit the version of ansible used by kolla-ansible to avoid new
# releases from breaking tested code. Changes to this limit should be
# tested.
- ansible>=2.10.0,<5.0
- ansible>=4,<6.0
- selinux
pip:
name: "{{ (kolla_ansible_packages + kolla_ansible_venv_extra_requirements) | select | list }}"

View File

@ -1,7 +1,7 @@
---
- include: test-invalid-format.yml
- include: test-mount.yml
- include: test-bootstrapped.yml
- import_playbook: test-invalid-format.yml
- import_playbook: test-mount.yml
- import_playbook: test-bootstrapped.yml
- hosts: localhost
connection: local

View File

@ -0,0 +1,16 @@
---
upgrade:
- |
Updates the maximum supported version of Ansible from 4.x (ansible-core
2.11) to 5.x (ansible-core 2.12). The minimum supported version is updated
from 2.10 to 4.x. This is true for both Kayobe and Kolla Ansible. Note that
environments with Python 3.7 or lower (e.g. CentOS Stream 8) will be
limited to Ansible 4.x (ansible-core 2.11).
- |
Upgrading directly from Ansible 2.10 to Ansible 4 or later is known to
cause problems. You should uninstall ``ansible`` and ``ansible-base``
before upgrading your Kayobe virtual environment:
.. code-block:: console
pip uninstall ansible ansible-base

View File

@ -1,5 +1,5 @@
pbr>=2.0 # Apache-2.0
ansible>=2.10.0,<5.0 # GPLv3
ansible>=4,<6.0 # GPLv3
cliff>=3.1.0 # Apache
netaddr!=0.7.16,>=0.7.13 # BSD
PyYAML>=3.10.0 # MIT