Bump up Ansible supported versions to 6.x/7.x

This change bumps up the maximum supported Ansible version to 7.x
(ansible-core 2.14.x) and minimum to 6.x (ansible-core 2.13.x).
This synchronises Kayobe with Kolla Ansible.

Change-Id: Ibffecaa8085bd38ebc8cded9a4bfebe77d59d515
This commit is contained in:
Bartosz Bezak 2023-03-22 12:18:22 +01:00 committed by Michal Nasiadka
parent d80189611a
commit 773eead34d
4 changed files with 10 additions and 2 deletions

View File

@ -24,7 +24,8 @@ kolla_ansible_venv_extra_requirements: []
# Pip requirement specifier for the ansible package. NOTE: This limits the
# version of ansible used by kolla-ansible to avoid new releases from breaking
# tested code. Changes to this limit should be tested.
kolla_ansible_venv_ansible: 'ansible>=5,<7.0'
kolla_ansible_venv_ansible: 'ansible>=6,<8.0'
kolla_ansible_venv_ansible_core: 'ansible-core>=2.13,<=2.14.2'
# Path to a requirements.yml file for Ansible collections.
kolla_ansible_requirements_yml: "{{ kolla_ansible_venv }}/share/kolla-ansible/requirements.yml"

View File

@ -95,6 +95,7 @@
{% else %}
kolla-ansible=={{ kolla_openstack_release }}
{% endif %}
- "{{ kolla_ansible_venv_ansible_core }}"
- "{{ kolla_ansible_venv_ansible }}"
- selinux
pip:

View File

@ -0,0 +1,6 @@
---
upgrade:
- |
Updates the maximum supported version of Ansible from 6.x (ansible-core
2.13) to 7.x (ansible-core 2.14). The minimum supported version is updated
from 5.x to 6.x. This is true for both Kayobe and Kolla Ansible.

View File

@ -1,6 +1,6 @@
pbr>=2.0 # Apache-2.0
Jinja2>3 # BSD
ansible>=5,<7.0 # GPLv3
ansible>=6,<8.0 # GPLv3
cliff>=3.1.0 # Apache
netaddr!=0.7.16,>=0.7.13 # BSD
PyYAML>=3.10.0 # MIT