# git module with gitlab

**URL:** <https://forum.ansible.com/t/git-module-with-gitlab/14155>\
**Category:** Ansible Project\
**Created:** [December 13, 2013, 8:19pm UTC](https://forum.ansible.com/t/git-module-with-gitlab/14155 "2013-12-13T20:19:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Neudorfer](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@David\_Neudorfer](https://forum.ansible.com/u/David_Neudorfer)\
**Post date:** [December 13, 2013, 8:19pm UTC](https://forum.ansible.com/t/git-module-with-gitlab/14155/1 "2013-12-13T20:19:48Z")

</div>

Trying to clone a repo

[git@git.lbox.com](mailto:git@git.lbox.com):douglas.goodwin/rodney.git

returns

stderr: ssh: Could not resolve hostname [git.lbox.com](http://git.lbox.com):douglas.goodwin: Name or service not known

The git module is trying to use douglas.goodwin as the port. When I do a “git clone [git@git.lbox.com](mailto:git@git.lbox.com):douglas.goodwin/rodney.git” it works fine. Any suggested work arounds?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 13, 2013, 8:27pm UTC](https://forum.ansible.com/t/git-module-with-gitlab/14155/2 "2013-12-13T20:27:31Z")

</div>

Perhaps try specifying it like:

ssh://git@git.lbox.com/douglas.goodwin/rodney.git

---

<div class="post-metadata">

**Author:** ![David\_Neudorfer](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@David\_Neudorfer](https://forum.ansible.com/u/David_Neudorfer)\
**Post date:** [December 13, 2013, 9:12pm UTC](https://forum.ansible.com/t/git-module-with-gitlab/14155/3 "2013-12-13T21:12:27Z")

</div>

I tried that and it fails. Thats how gitlab wants the url structured. I tried ssh://git@git.lbox.com:22:douglas.goodwin/rodney.git as well.

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [December 13, 2013, 9:13pm UTC](https://forum.ansible.com/t/git-module-with-gitlab/14155/4 "2013-12-13T21:13:44Z")

</div>

Strange, I actually put both variations in a playbook and used your URL, and while it did want a password, I could see that both work.

---

<div class="post-metadata">

**Author:** ![David\_Neudorfer](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@David\_Neudorfer](https://forum.ansible.com/u/David_Neudorfer)\
**Post date:** [December 13, 2013, 9:26pm UTC](https://forum.ansible.com/t/git-module-with-gitlab/14155/5 "2013-12-13T21:26:03Z")

</div>

I’m using a key. so I don’t think it even gets as far as accessing the url to notice something is wrong on your end. Thats just my guess though.
