From bc203433f1120373fbe751521eafc6cd3a3ee336 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 25 Sep 2023 14:03:34 +0000 Subject: Add support for ansible-core Collections version taken from official Ansible 7 package [1] and limited to the same major version. [1]: https://github.com/ansible-community/ansible-build-data/blob/main/7/ansible-7.7.0.yaml Change-Id: I0f1ea9717397adc2d2c3215d74ec3759f351a57a --- tests/run.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/run.yml b/tests/run.yml index 843f59cf1..92db8985b 100644 --- a/tests/run.yml +++ b/tests/run.yml @@ -256,15 +256,34 @@ virtualenv: "{{ kolla_ansible_venv_path }}" - name: install kolla-ansible and dependencies + vars: + ansible_core_version_min: "==2.14.*" + ansible_core_version_max: "==2.15.*" + # Test latest ansible version on Ubuntu, minimum supported on others. + ansible_core_version_constraint: >- + {{ ansible_core_version_min if is_upgrade or base_distro != 'ubuntu' else ansible_core_version_max }} pip: extra_args: "-c {{ upper_constraints_file }}" name: - "{{ kolla_ansible_src_dir }}" - "ansible-core{{ ansible_core_version_constraint }}" - - "ansible{{ ansible_version_constraint }}" - "ara[server]<1.7" virtualenv: "{{ kolla_ansible_venv_path }}" + # TODO(mnasiadka): Remove in Caracal + - name: install Ansible on upgrade only + vars: + ansible_version_min: "==7.*" + ansible_version_max: "==8.*" + # Test latest ansible version on Ubuntu, minimum supported on others. + ansible_version_constraint: >- + {{ ansible_version_min if is_upgrade or base_distro != 'ubuntu' else ansible_version_max }} + pip: + extra_args: "-c {{ upper_constraints_file }}" + name: "ansible{{ ansible_version_constraint }}" + virtualenv: "{{ kolla_ansible_venv_path }}" + when: is_upgrade + - name: install Ansible collections shell: | source {{ kolla_ansible_venv_path }}/bin/activate -- cgit v1.2.3