2016-03-14 17:57:40 +08:00
|
|
|
---
|
|
|
|
- name: check if there is python
|
|
|
|
raw: stat $HOME/.python
|
|
|
|
register: need_python
|
|
|
|
ignore_errors: true
|
2017-10-25 22:48:09 +08:00
|
|
|
always_run: true
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- include: install_pypy.yml
|
|
|
|
when: need_python | failed
|
|
|
|
|
|
|
|
- name: check if there is pip
|
|
|
|
raw: stat $HOME/.pip
|
|
|
|
register: need_pip
|
|
|
|
ignore_errors: true
|
2017-10-25 22:48:09 +08:00
|
|
|
always_run: true
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- include: install_pip.yml
|
2016-09-10 06:16:41 +08:00
|
|
|
when: need_pip | failed and need_python | failed
|