Merge "Disable the pip version check"
This commit is contained in:
commit
670f97b4a0
|
@ -65,6 +65,7 @@ pip_validate_certs: "yes"
|
|||
pip_configure: true
|
||||
|
||||
# Options for pip global
|
||||
pip_disable_version_check: true
|
||||
pip_enable_pre_releases: true
|
||||
pip_timeout: 120
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% set trusted_host_list = pip_links_host_list | union([ pip_default_index | netloc_no_port ]) %}
|
||||
|
||||
[global]
|
||||
disable-pip-version-check = {{ (pip_disable_version_check | bool) | lower }}
|
||||
timeout = {{ pip_timeout }}
|
||||
index-url = {{ pip_default_index }}
|
||||
{% if trusted_host_list | length > 0 %}
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
stat:
|
||||
path: "{{ ansible_env.HOME}}/.cache/pip"
|
||||
register: pip_dir
|
||||
- name: Check selfcheck json file
|
||||
stat:
|
||||
path: "{{ ansible_env.HOME}}/.cache/pip/selfcheck.json"
|
||||
register: pip_selfcheck_file
|
||||
- name: Get pip path
|
||||
command: which pip
|
||||
register: pip_path
|
||||
|
@ -44,5 +40,4 @@
|
|||
assert:
|
||||
that:
|
||||
- "pip_dir.stat.isdir"
|
||||
- "pip_selfcheck_file.stat.exists"
|
||||
- "pip_version.stdout | search('9.0.3')"
|
||||
|
|
Loading…
Reference in New Issue