ci: Ansible version must be string, not float [citest_skip]

The ansible version is specified as a YAML floating point number.  This causes
`2.20` to be converted to `2.2` which breaks platforms that use ansible 2.20.
Ensure it and similar version numbers are specified in YAML as strings.

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
Rich Megginson 2026-02-17 12:30:35 -07:00 committed by Richard Megginson
parent 792033b74a
commit a531e880bb
2 changed files with 11 additions and 9 deletions

View file

@ -98,21 +98,22 @@ jobs:
fail-fast: false
matrix:
include:
# Ensure ansible version is a string!
- platform: Fedora-42
ansible_version: 2.19
ansible_version: "2.19"
- platform: Fedora-43
ansible_version: 2.20
ansible_version: "2.20"
- platform: CentOS-7-latest
ansible_version: 2.9
ansible_version: "2.9"
- platform: CentOS-Stream-8
ansible_version: 2.9
ansible_version: "2.9"
# On CentOS-Stream-8, latest supported Ansible is 2.16
- platform: CentOS-Stream-8
ansible_version: 2.16
ansible_version: "2.16"
- platform: CentOS-Stream-9
ansible_version: 2.17
ansible_version: "2.17"
- platform: CentOS-Stream-10
ansible_version: 2.17
ansible_version: "2.17"
runs-on: ubuntu-latest
env:
ARTIFACTS_DIR_NAME: "tf_${{ github.event.repository.name }}-${{ github.event.issue.number }}_\

View file

@ -48,9 +48,10 @@ provision:
- type: eth
- type: eth
environment:
SR_ANSIBLE_VER: 2.17
# ensure versions are strings!
SR_ANSIBLE_VER: "2.17"
SR_REPO_NAME: network
SR_PYTHON_VERSION: 3.12
SR_PYTHON_VERSION: "3.12"
SR_ONLY_TESTS: "" # tests_default.yml
SR_TEST_LOCAL_CHANGES: true
SR_PR_NUM: ""