Don't specify -c flag to pip if no upper constraints

This commit is contained in:
Doug Szumski 2018-02-22 14:44:14 +00:00
parent 227ebcae41
commit f1f6a0b107
4 changed files with 4 additions and 4 deletions

View File

@ -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 }}"

View File

@ -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 }}"

View File

@ -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

View File

@ -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 }}"