Adding Proxy support

pull/1192/head
Davide Belloni 2016-12-15 15:28:59 +01:00
parent 2f6d603738
commit 87373e75d9
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
---
- name: download get_pip.py
raw: cd $HOME && wget {{pip_url}}
raw: cd $HOME && https_proxy="{{ lookup('env', 'https_proxy') }}" wget {{pip_url}}
- name: run get-pip.py
raw: "{{pypy_binary_directory}}/python $HOME/get-pip.py"
raw: "{{pypy_binary_directory}}/python $HOME/get-pip.py --proxy='{{ lookup('env', 'https_proxy') }}'"
- name: create local temp directory
local_action: raw mkdir -p {{local_temp_directory}}

View File

@ -1,6 +1,6 @@
---
- name: download python
raw: cd $HOME && wget -O - {{coreos_pypy_url}} |tar -xjf -
raw: cd $HOME && https_proxy="{{ lookup('env', 'https_proxy') }}" wget -O - {{coreos_pypy_url}} |tar -xjf -
- name: create pypy_directory
raw: mkdir -p {{pypy_binary_directory}}