【发布时间】:2017-05-29 08:46:39
【问题描述】:
在这个例子中,Django-cities 失败了。
- hosts: localhost
tasks:
- name: Install Django
pip: name=Django
- name: Install Userena
pip: name=django-userena
- name: Install Django Messages
pip: name=https://github.com/arneb/django-messages/archive/master.zip
- name: Install Django Cities
pip: name=git+https://github.com/coderholic/django-cities.git@d0163f393e7557914b3f2c6882e740537ca63fd6
错误:
TASK [Install Django Cities] ***************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/pip2 install -e git+https://github.com/coderholic/django-cities.git@d0163f393e7557914b3f2c6882e740537ca63fd6",
"failed": true, "msg": "\n:stderr: --editable=git+https://github.com/coderholic/django-cities.git@d0163f393e7557914b3f2c6882e740537ca63fd6 is not the right format; it must have #egg=Package\nYou are using pip version 8.1.2, however version 9.0.1 is available.\nYou should consider upgrading via the 'pip install --upgrade pip' command.\n"}
to retry, use: --limit @/root/cannablr/ansible/playbooks/installdjango.retry
Ansible 中不允许通过 pip 安装 git 提交吗?
【问题讨论】: