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:
|
pip:
|
||||||
name: docker
|
name: docker
|
||||||
state: latest
|
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) }}"
|
virtualenv: "{{ virtualenv is defined | ternary(virtualenv, omit) }}"
|
||||||
become: "{{ virtualenv is not defined }}"
|
become: "{{ virtualenv is not defined }}"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
pip:
|
pip:
|
||||||
name: docker
|
name: docker
|
||||||
state: latest
|
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) }}"
|
virtualenv: "{{ virtualenv is defined | ternary(virtualenv, omit) }}"
|
||||||
become: "{{ virtualenv is not defined }}"
|
become: "{{ virtualenv is not defined }}"
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
pip:
|
pip:
|
||||||
requirements: "{{ kolla_ansible_venv }}/requirements.txt"
|
requirements: "{{ kolla_ansible_venv }}/requirements.txt"
|
||||||
state: present
|
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 }}"
|
virtualenv: "{{ kolla_ansible_venv }}"
|
||||||
|
|
||||||
# This is a workaround for the lack of a python package for libselinux-python
|
# This is a workaround for the lack of a python package for libselinux-python
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
version: "{{ item.version | default(omit) }}"
|
version: "{{ item.version | default(omit) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
virtualenv: "{{ kolla_venv }}"
|
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:
|
with_items:
|
||||||
# Intall Kolla from source.
|
# Intall Kolla from source.
|
||||||
- name: "{{ kolla_source_path }}"
|
- name: "{{ kolla_source_path }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user