diff --git a/roles/openstack-clients/defaults/main.yml b/roles/openstack-clients/defaults/main.yml index 8ffa3fa745..77aec80198 100644 --- a/roles/openstack-clients/defaults/main.yml +++ b/roles/openstack-clients/defaults/main.yml @@ -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" diff --git a/roles/openstack-clients/tasks/main.yml b/roles/openstack-clients/tasks/main.yml index e2924c1b77..aafa855fb9 100644 --- a/roles/openstack-clients/tasks/main.yml +++ b/roles/openstack-clients/tasks/main.yml @@ -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"