This still doesn't work for me , any of below : - src: [email protected]:ansible/ansible-zsh.git scm: git
- src: [email protected]/ansible/ansible-zsh.git scm: git - src: ssh://[email protected]:ansible/ansible-zsh.git scm: git - src: ssh://[email protected]/ansible/ansible-zsh.git scm: git - src: git+ssh://[email protected]:ansible/ansible-zsh.git - src: git+ssh://[email protected]/ansible/ansible-zsh.git All of the above produce "command git clone ... failed" I can successfuly run "git clone [email protected]:ansible/ansible-zsh.git ansible-zsh" , which gets outputed by Ansible (by using the first "src:" config above which is supposed to be incorrect syntax in the first place) : - executing: git clone [email protected]:ansible/ansible-zsh.git ansible-zsh So Ansible seems to output here something that is not in fact executing (probably it's not using git binary) $ ansible --version ansible 1.9.3 I'm using Gitolite and have only ssh access , no http(s) . It works ok with https on Github . On Tuesday, September 9, 2014 at 6:44:49 PM UTC+2, Michael DeHaan wrote: > > Thanks, I commented on it - I would use https:// for anonymous checkouts > on GitHub but we can investigate. > > > > On Tue, Sep 9, 2014 at 5:46 AM, Patrick Schirch <[email protected] > <javascript:>> wrote: > >> Created an issue <https://github.com/ansible/ansible/issues/8937> on >> Github ... >> >> Am Sonntag, 7. September 2014 19:50:45 UTC+2 schrieb Patrick Schirch: >> >>> Ansible >> ansible 1.8 (devel 8cc3543918) last updated 2014/09/07 >>> 11:14:49 (GMT +200) >>> Git >> 1.9.1 >>> >>> ssh://git@ourgitlabhost:example-group/example-role.git >>> >>> ansible-galaxy install -r requirements.yml >>> - downloading role from ssh://git@ourgitlabhost: >>> example-group/example-role.git >>> - error: failed to download the file. >>> - example-role was NOT installed successfully. >>> - you can use --ignore-errors to skip failed roles. >>> >>> >>> >>> Am Sonntag, 7. September 2014 19:37:14 UTC+2 schrieb Michael DeHaan: >>>> >>>> IIRC, an issue with role dependencies and the ansible-galaxy CLI has >>>> been recently resolved on the development branch, if you can try things >>>> with the latest (git update), that would be great. >>>> >>>> The released version, 1.7.1 is not affected, this was a consequence of >>>> upgrading the CLI during the development branch. >>>> >>>> >>>> >>>> On Sun, Sep 7, 2014 at 1:27 PM, Patrick Schirch < >>>> [email protected]> wrote: >>>> >>>>> ssh://git@ourgitlabhost:example-group/example-role.git >>>>> >>>>> ansible-galaxy install -r requirements.yml >>>>> - downloading role from ssh://git@ourgitlabhost: >>>>> example-group/example-role.git >>>>> - error: failed to download the file. >>>>> - example-role was NOT installed successfully. >>>>> - you can use --ignore-errors to skip failed roles. >>>>> >>>>> >>>>> Am Freitag, 5. September 2014 21:05:39 UTC+2 schrieb Michael DeHaan: >>>>>> >>>>>> When you say doesn't work, please let us know what doesn't work means. >>>>>> >>>>>> ssh://username:password@host/path.git >>>>>> >>>>>> Needs to know it's SSH, basically >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Sep 5, 2014 at 1:32 AM, Patrick Schirch < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Right, I want to know how I can use SSH for cloning. >>>>>>> >>>>>>> - src: git@ourgitlabhost:example-group/example-role.git >>>>>>> <https://www.google.com/url?q=https%3A%2F%2Fourgitlabhost%2Fexample-group%2Fexample-role.git&sa=D&sntz=1&usg=AFQjCNGEfzKxRa2OoNPCdlFpjHfL1mSglA> >>>>>>> >>>>>>> doesn't work. >>>>>>> >>>>>>> >>>>>>> Am Freitag, 5. September 2014 03:33:52 UTC+2 schrieb Michael DeHaan: >>>>>>>> >>>>>>>> Let me make sure I understand the question ... >>>>>>>> >>>>>>>> Are you asking what to put in the requirements.yml file so that it >>>>>>>> can download the above github role? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Sep 4, 2014 at 3:45 PM, Patrick Schirch < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> i want to share internal organization ansible roles from our >>>>>>>>> gitlab instance with my colleagues. >>>>>>>>> >>>>>>>>> 1. I installed Ansible 1.8 dev from source. >>>>>>>>> 2. Created a requirements.yml. >>>>>>>>> 3. Added a repo from the gitlab instance (src: git+ >>>>>>>>> https://ourgitlabhost/example-group/example-role.git >>>>>>>>> <https://ourgitlabhost/example-group/example-role.git>) >>>>>>>>> 4. Executing ansible-galaxy install -r requirements.yml >>>>>>>>> >>>>>>>>> It only uses https (with git config http.sslVerify false ) to >>>>>>>>> clone the repo sucessfully. >>>>>>>>> >>>>>>>>> What is the right syntax to use SSH for cloning? >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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/99ba978d-3 >>>>>>>>> 723-46c0-a24e-db02f2d54155%40googlegroups.com >>>>>>>>> <https://groups.google.com/d/msgid/ansible-project/99ba978d-3723-46c0-a24e-db02f2d54155%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>>> . >>>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>> 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/8d5915e7- >>>>>>> f6a3-411b-a70e-5942f3282050%40googlegroups.com >>>>>>> <https://groups.google.com/d/msgid/ansible-project/8d5915e7-f6a3-411b-a70e-5942f3282050%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>> . >>>>>>> >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> >>>>>> -- >>>>> 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/26caf62d-c681-4bb8-989a- >>>>> 36b476763c03%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/ansible-project/26caf62d-c681-4bb8-989a-36b476763c03%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/b91d284c-1463-45d5-bce8-194d11c3fc61%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/b91d284c-1463-45d5-bce8-194d11c3fc61%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/c49ee24c-809b-4775-aeff-d99b3ea6a819%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
