Skip to content

Commit a1e7fa2

Browse files
committed
CI: Test minimum and maximum supported ansible versions
Change-Id: I7b1e36edb1680220c6fe082fbf5eefdd633c8cfa (cherry picked from commit 999e3db)
1 parent cc5aa62 commit a1e7fa2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/run.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,11 @@
202202
203203
- name: install kolla-ansible and dependencies
204204
vars:
205+
ansible_version_min: "==2.9.*"
206+
ansible_version_max: "==2.10.*"
205207
# Test latest ansible version on Ubuntu, minimum supported on others.
206-
ansible_version_constraint: "{{ '==2.9.*' if is_upgrade else '==2.10.*' }}"
208+
ansible_version_constraint: >-
209+
{{ ansible_version_min if is_upgrade or base_distro != 'ubuntu' else ansible_version_max }}
207210
command: >-
208211
python3 -m pip install --user
209212
-c {{ upper_constraints_file }}

0 commit comments

Comments
 (0)