Sourcing this script fixes the problem:
https://github.com/wwalker/ssh-find-agent


On Friday, December 1, 2017 at 11:55:20 AM UTC-8, Michael Bushey wrote:
>
> I am doing a git fetch (also git merge master) on the remote machines. It 
> seems random whether it will work or not. I get errors like:  "error 
> fetching identities for protocol 2: communication with agent failed" or 
> "fatal: 'ef' does not appear to be a git repository\nfatal: Could not read 
> from remote repository.\n\nPlease make sure you have the correct access 
> rights\nand the repository exists."
>
> I can manually ssh into the server and run a "git fetch" 100% of the time.
>
> In the Ansible playbook I can do a "ssh-add -l" and see the key it should 
> be using the step before the "Could not read from remote repository." 
> error. The git server is Bitbucket v5.4.0.
>
>
> Any ideas?
>
>

-- 
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/677cf85c-a78b-43b0-bcfe-deeee8b56007%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to