CI: Use u-c in openstack-clients role

Change-Id: I29a3f86b59aeaa8ca64d5e6780fa094b903d0039
This commit is contained in:
Michal Nasiadka 2024-08-07 19:24:43 +02:00
parent 9a5059d440
commit 3a322ce592
2 changed files with 3 additions and 0 deletions

View File

@ -35,3 +35,5 @@ openstack_clients_pip_packages:
openstack_clients_venv_base: "{{ ansible_user_dir }}"
openstack_clients_venv_name: "openstackclient-venv"
openstack_clients_venv_path: "{{ openstack_clients_venv_base }}/{{ openstack_clients_venv_name }}"
openstack_clients_upper_constraints_file: "{{ ansible_env.HOME }}/src/opendev.org/openstack/requirements/upper-constraints.txt"

View File

@ -1,6 +1,7 @@
---
- name: Setup OpenStack clients
ansible.builtin.pip:
extra_args: "-c {{ openstack_clients_upper_constraints_file }}"
name: "{{ item.package }}"
virtualenv: "{{ openstack_clients_venv_path }}"
virtualenv_command: "python3 -m venv"