I am trying to install a package from a private git repository using this module module:
- name: Install my package pip: name='git+ssh:// git@github.com /mycompany/my-repo.git#egg=0.1.0' virtualenv=/path/to/venv
But it freezes when I try to provide this with vagrancy, most likely because it asks for confirmation of adding the key to the list of known hosts. Indeed, when I run this in tramps:
pip install git+ssh:// git@github.com /mycompany/my-repo.git
It asks for confirmation to add github to know nodes, and then works fine.
If I clone it using accept_hostkey=yes :
- name: Clone repo git: repo=git@github.com :mycompany/my-repo.git dest=/path/to/dest accept_hostkey=yes recursive=no
it works great because it accepts the host key, which is copied to the tramp. Is there no such option with pip module, anyway? Alternatively, I could make a clone and then python setup.py install , but I would prefer to do it in one step with pip.
source share