From 5f566318d50a6856cc9deca79c0edd3d9564ffbd Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Fri, 24 Nov 2017 16:53:48 +0000 Subject: [PATCH] Add ability to disable implementing pip.conf On something like the repo server we do not want to change the default pip settings so that we allow the global pip.conf or default pip settings to do the right things. Change-Id: I7bd31f2d89d3fe9d48e32c79ddef7a8ef1392eb7 --- defaults/main.yml | 7 +++++++ tasks/main.yml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index d8f90de..5cea668 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -98,6 +98,13 @@ cache_timeout: 600 # is intercepting the certificates. pip_validate_certs: "yes" +# Boolean variable to set whether pip.conf should be +# implemented to adjust pip's default behaviour. +# By default we do this, but sometimes we want to +# just let the default pip.conf on the system or +# pip's default settings do their thing. +pip_configure: true + # Options for pip global pip_enable_pre_releases: true pip_timeout: 120 diff --git a/tasks/main.yml b/tasks/main.yml index 86a20c9..0766563 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,6 +25,9 @@ - always - include: configure.yml + static: no + when: + - pip_configure | bool tags: - pip_install-install