Re: [ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-12 Thread tamakisquare
Gilles, I have magically resolved the blocking issue by adding the option '-o UserKnownHostsFile=/dev/null', together with the option '-o StrictHostKeyChecking=no'. I tried this solution with both Ubuntu 12.04 and 14.04 and didn't get any issue at all. I, however, have yet to find the rational

Re: [ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-10 Thread Gilles Cornu
tamakisquare, Thanks for feedback, and sorry for bad suspicion on potential root abuse ;-) For me everything behaves the same on Ubuntu 12.04 and 14.04 flavors. Do you still observe this problem on 14.04? I suspect (again!) that you might experienced some "transient" troubles, maybe due to Cont

Re: [ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-09 Thread Michael DeHaan
I've heard this claimed before. Doesn't the vagrant provisioner do something weird like SSH in and then run Ansible, so the issue is with vagrant not doing the forwarding, regardless if your SSH config is so set? Either way, be sure you are using "-c ssh". If you are on Enterprise Linux, Paramik

[ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-08 Thread tamakisquare
I should mention that the verbose output from Ansible for the `git` task is also exactly the same in both cases. On Thursday, May 8, 2014 4:12:42 PM UTC-7, tamakisquare wrote: > > Gilles, thanks for the reply. > > I have double checked that the `git` task is indeed executed by the > intended rem

[ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-08 Thread tamakisquare
Gilles, thanks for the reply. I have double checked that the `git` task is indeed executed by the intended remote user, vagrant, not root. Sudo is off in both Vagrant and Ansible configuration. I have a new discovery to the problem though. The reported issue happened with Ubuntu 14.04 ("phusio

[ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-08 Thread Gilles Cornu
> Your play snippet and execution log excerpt do not allow to know if the > `git` task is executed by the remote user (in this example `vagrant`) and I > suspect that this task is in fact executed by root, due to some `sudo: yes` > (enabled either in Vagrant settings or in your playbook file)

[ansible-project] Re: Issue with git module and ssh agent forwarding

2014-05-08 Thread Gilles Cornu
Hi, Your play snippet and execution log excerpt do not allow to know if the `git` task is executed by the remote user (in this example `vagrant`) and I suspect that this task is in fact executed by root, due to some `sudo: yes` (enabled either in Vagrant settings or in your playbook file). In t