aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-11-08 15:01:02 +0000
committerGerrit Code Review <review@openstack.org>2023-11-08 15:01:02 +0000
commite9dd15967b3b093cb237ccf58c8479b5d4753987 (patch)
treeb57cdfea46a131c827517becf432b2c8bf828d49 /tests
parenta599e91178cbc546313cc148f00c00badccbc23f (diff)
parentbc203433f1120373fbe751521eafc6cd3a3ee336 (diff)
downloadkolla-ansible-e9dd15967b3b093cb237ccf58c8479b5d4753987.tar.gz
kolla-ansible-e9dd15967b3b093cb237ccf58c8479b5d4753987.zip
Merge "Add support for ansible-core"
Diffstat (limited to 'tests')
-rw-r--r--tests/run.yml21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/run.yml b/tests/run.yml
index 5503902a5..467565743 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