Which version of Windows are you using? Are you using Cygwin or OpenSSH for the sshd-agent?
On Tuesday, September 6, 2016 at 4:38:16 PM UTC+2, Андрей Круглов wrote: > > Ansible has not git_win module (see here: > https://groups.google.com/forum/#!searchin/ansible-project/git$20windows|sort:relevance/ansible-project/-uSBtqDPg0s/gPWlTlw3BwAJ > > ) > > I use msysgit to clone git repository under windows. Something like: > > - name: clone repositories >> raw: C:\OpenServer\modules\git\cmd\git.exe clone {{ item.repo }} >> C:\OPenserver\domains\{{ sp.name }}\{{ item.path }} >> # version: "{{ item.version | default('HEAD') }}" >> with_items: "{{ sp.repositories }}" >> tags: >> - repo >> > > So, there'is an issue: no way to clone repo via SSH protocol. > > This > <http://stackoverflow.com/questions/39301265/how-to-clone-git-repository-using-ansible-under-microsoft-windows> > > works: > > - name: clone repositories test1 >> raw: C:\OpenServer\modules\git\cmd\git.exe clone >> https://github.com/OpenCorpora/opencorpora.git >> C:\OPenserver\domains\opencorpora.local\www >> > > But this fails: > > - name: clone repositories test2 >> raw: C:\OpenServer\modules\git\cmd\git.exe clone >> ssh://[email protected]/myproject.git >> C:\OPenserver\domains\testwebsite.local\www >> > > I've got sshd-agent on my server running with appopriate key (works fine > on every linux server, no issues to clone repositories on these servers) > > Is there an way to clone repos *via SSH forwarding ssh-agent*? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d75b93e0-4e74-46c5-a6f4-d2a29995f893%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
