2016-03-14 17:57:40 +08:00
|
|
|
---
|
|
|
|
- name: download get_pip.py
|
2016-12-15 22:28:59 +08:00
|
|
|
raw: cd $HOME && https_proxy="{{ lookup('env', 'https_proxy') }}" wget {{pip_url}}
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: run get-pip.py
|
2016-12-15 22:28:59 +08:00
|
|
|
raw: "{{pypy_binary_directory}}/python $HOME/get-pip.py --proxy='{{ lookup('env', 'https_proxy') }}'"
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: create local temp directory
|
|
|
|
local_action: raw mkdir -p {{local_temp_directory}}
|
2016-03-22 23:58:20 +08:00
|
|
|
become: no
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: prepare install_pip.sh
|
|
|
|
local_action: template src=install_pip.sh.j2 dest={{local_temp_directory}}/install_pip.sh
|
2016-03-22 23:58:20 +08:00
|
|
|
become: no
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: run pip.sh
|
|
|
|
script: "{{local_temp_directory}}/install_pip.sh"
|
|
|
|
|
|
|
|
- name: add execute permission
|
2016-03-15 00:53:18 +08:00
|
|
|
raw: chmod a+x {{pypy_directory}}/pip
|
2016-03-14 17:57:40 +08:00
|
|
|
|
2016-12-15 22:28:59 +08:00
|
|
|
- name: create pypy_directory
|
2016-06-28 18:11:42 +08:00
|
|
|
raw: mkdir -p {{pypy_binary_directory}}
|
|
|
|
|
2016-03-14 17:57:40 +08:00
|
|
|
- name: move python to binary directory
|
2016-03-15 00:53:18 +08:00
|
|
|
raw: mv {{pypy_directory}}/pip {{pypy_binary_directory}}/pip
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: create .pip
|
|
|
|
raw: touch $HOME/.pip
|
|
|
|
|
|
|
|
- name: remove pip.sh
|
|
|
|
local_action: file path="{{local_temp_directory}}/pip.sh" state=absent
|
2016-03-22 23:58:20 +08:00
|
|
|
become: no
|