git module with gitlab

Trying to clone a repo

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

returns

stderr: ssh: Could not resolve hostname 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:douglas.goodwin/rodney.git” it works fine. Any suggested work arounds?

Perhaps try specifying it like:

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

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.

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.

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.