Don't specify -c flag to pip if no upper constraints
This commit is contained in:
parent
227ebcae41
commit
f1f6a0b107
@ -26,6 +26,6 @@
|
||||
pip:
|
||||
name: docker
|
||||
state: latest
|
||||
extra_args: "-c {{ kolla_upper_constraints_file }}"
|
||||
extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}"
|
||||
virtualenv: "{{ virtualenv is defined | ternary(virtualenv, omit) }}"
|
||||
become: "{{ virtualenv is not defined }}"
|
||||
|
@ -18,7 +18,7 @@
|
||||
pip:
|
||||
name: docker
|
||||
state: latest
|
||||
extra_args: "-c {{ docker_upper_constraints_file }}"
|
||||
extra_args: "{% if docker_upper_constraints_file %}-c {{ docker_upper_constraints_file }}{% endif %}"
|
||||
virtualenv: "{{ virtualenv is defined | ternary(virtualenv, omit) }}"
|
||||
become: "{{ virtualenv is not defined }}"
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
pip:
|
||||
requirements: "{{ kolla_ansible_venv }}/requirements.txt"
|
||||
state: present
|
||||
extra_args: "-c {{ kolla_upper_constraints_file }}"
|
||||
extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}"
|
||||
virtualenv: "{{ kolla_ansible_venv }}"
|
||||
|
||||
# This is a workaround for the lack of a python package for libselinux-python
|
||||
|
@ -65,7 +65,7 @@
|
||||
version: "{{ item.version | default(omit) }}"
|
||||
state: "{{ item.state | default('present') }}"
|
||||
virtualenv: "{{ kolla_venv }}"
|
||||
extra_args: "-c {{ kolla_upper_constraints_file }}"
|
||||
extra_args: "{% if kolla_upper_constraints_file %}-c {{ kolla_upper_constraints_file }}{% endif %}"
|
||||
with_items:
|
||||
# Intall Kolla from source.
|
||||
- name: "{{ kolla_source_path }}"
|
||||
|
Loading…
Reference in New Issue
Block a user