Test 2 major ansible versions
We keep testing Ansible 8.x in CentOS Stream 9, while we start testing Ansible 9.x in ubuntu and debian. This is mainly because in CentOS Stream 9 we have Python 3.9 but Ansible 9 requires at least Python 3.10. Change-Id: If2fcae6eb3d00a7488fd237ae155c337c0747e20
This commit is contained in:
parent
50a0b4c2a2
commit
1065dec797
4
releasenotes/notes/ansible9-26b181a8ca5716cf.yaml
Normal file
4
releasenotes/notes/ansible9-26b181a8ca5716cf.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Start testing and supporting Ansible 9.x in parallel with Ansible 8.x
|
@ -5,8 +5,12 @@ set -euo pipefail
|
|||||||
. $(dirname $0)/install-deps.sh
|
. $(dirname $0)/install-deps.sh
|
||||||
# NOTE(pas-ha) the above exports some useful variables like
|
# NOTE(pas-ha) the above exports some useful variables like
|
||||||
# $PYTHON , $PIP and $VENV depending on venv install or not
|
# $PYTHON , $PIP and $VENV depending on venv install or not
|
||||||
|
source /etc/os-release
|
||||||
DEFAULT_PIP_ANSIBLE='>=8,<9'
|
if [[ $ID == "centos" ]] || [[ $VERSION_CODENAME == "bullseye" ]]; then
|
||||||
|
DEFAULT_PIP_ANSIBLE='>=8,<9'
|
||||||
|
elif [[ $ID == "ubuntu" ]] || [[ $VERSION_CODENAME == "bookworm" ]] ; then
|
||||||
|
DEFAULT_PIP_ANSIBLE='>=9,<10'
|
||||||
|
fi
|
||||||
|
|
||||||
ANSIBLE_COLLECTIONS_REQ=${ANSIBLE_COLLECTIONS_REQ:-$(dirname $0)/../ansible-collections-requirements.yml}
|
ANSIBLE_COLLECTIONS_REQ=${ANSIBLE_COLLECTIONS_REQ:-$(dirname $0)/../ansible-collections-requirements.yml}
|
||||||
ANSIBLE_COLLECTION_SOURCE_PATH=
|
ANSIBLE_COLLECTION_SOURCE_PATH=
|
||||||
|
4
tox.ini
4
tox.ini
@ -79,8 +79,8 @@ filename = *.py
|
|||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
allowlist_externals = bash
|
allowlist_externals = bash
|
||||||
deps =
|
deps =
|
||||||
ansible>=8,<9
|
ansible>=9,<10
|
||||||
ansible-lint>=6,<7
|
ansible-lint>=24,<25
|
||||||
commands =
|
commands =
|
||||||
bash tools/ansible-lint.sh
|
bash tools/ansible-lint.sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user