ceph-ansible/roles/ceph-common-coreos/tasks/install_pypy.yml

34 lines
1.0 KiB
YAML
Raw Normal View History

---
- name: download python
raw: cd $HOME && wget -O - {{coreos_pypy_url}} |tar -xjf -
- name: move pypy to pypy_install_directory
raw: mv $HOME/pypy-{{coreos_pypy_version}}-{{coreos_pypy_arch}} {{pypy_directory}}
- name: create local temp directory
local_action: raw mkdir -p {{local_temp_directory}}
become: no
- name: prepare python executable
local_action: template src=install_python.sh.j2 dest={{local_temp_directory}}/install_python.sh
become: no
- name: fix library
2016-03-15 00:51:26 +08:00
raw: ln -s /lib64/libncurses.so.5.9 {{pypy_directory}}/lib_pypy/libtinfo.so.5
- name: run install_python.sh
script: "{{local_temp_directory}}/install_python.sh"
- name: add execute permission
2016-03-15 00:51:26 +08:00
raw: chmod a+x {{pypy_directory}}/python
- name: move python to binary directory
2016-03-15 00:51:26 +08:00
raw: mv {{pypy_directory}}/python {{pypy_binary_directory}}/python
- name: create .python
raw: touch $HOME/.python
- name: remove install_python.sh
local_action: file path="{{local_temp_directory}}/install_python.sh" state=absent
become: no