Hi, I'm trying to use the ansible and the git module to build a deployment tool for some python code. My git repos are stored on a box we access with ssh keys. I cannot figure out how to get the git module to use my ssh key to access the repo. Currently I'm trying to keep it simple using a simple play with connection:local, but it seems my key is being lost somewhere along the way because I'm getting "Permission denied (publickey).\r\nfatal: The remote end hung up unexpectedly\n." I can run the git command just fine, but ansible can't.
--
Hi, I'm trying to use the ansible and the git module to build a deployment tool for some python code. My git repos are stored on a box we access with ssh keys. I cannot figure out how to get the git module to use my ssh key to access the repo. Currently I'm trying to keep it simple using a simple play with connection:local, but it seems my key is being lost somewhere along the way because I'm getting "Permission denied (publickey).\r\nfatal: The remote end hung up unexpectedly\n." I can run the git command just fine, but ansible can't.
--
On Monday 5 November 2012 at 10:40, Xianzhe Liang wrote:
Hi, so anyone has some updates for this issue?
I still cann't make git module working. I set up ForwardAgent yes in ~/.ssh/config and use ansible with connection=ssh, but still got the Permission denied. Meanwhile, when I manually ssh to my server, I can do git clone. Any suggestion here?
Thanks!
Xianzhe
--
--