CI: Test minimum and maximum supported ansible versions

Change-Id: I7b1e36edb1680220c6fe082fbf5eefdd633c8cfa
This commit is contained in:
Mark Goddard 2021-11-15 10:29:14 +00:00 committed by Radosław Piliszek
parent e80b877d26
commit 999e3dbc97

View File

@ -202,8 +202,11 @@
- name: install kolla-ansible and dependencies
vars:
ansible_version_min: "==2.10.*"
ansible_version_max: "==4.*"
# Test latest ansible version on Ubuntu, minimum supported on others.
ansible_version_constraint: "{{ '==2.10.*' if is_upgrade else '==4.*' }}"
ansible_version_constraint: >-
{{ ansible_version_min if is_upgrade or base_distro != 'ubuntu' else ansible_version_max }}
command: >-
python3 -m pip install --user
-c {{ upper_constraints_file }}