# git repo to localhost

**URL:** <https://forum.ansible.com/t/git-repo-to-localhost/14400>\
**Category:** Ansible Project\
**Created:** [January 22, 2014, 9:22pm UTC](https://forum.ansible.com/t/git-repo-to-localhost/14400 "2014-01-22T21:22:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Palmer1](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Eric\_Palmer1](https://forum.ansible.com/u/Eric_Palmer1)\
**Post date:** [January 22, 2014, 9:22pm UTC](https://forum.ansible.com/t/git-repo-to-localhost/14400/1 "2014-01-22T21:22:59Z")

</div>

When I run this task on localhost (my mac)

- name: install the original (shawn starkey written) ldap library from git  
git: repo={{ git\_url\_ldap\_original\_lib\_repo }} dest={{ ldap\_original\_lib\_home\_parent }}/ldap depth=1  
sudo: True  
tags:
- urlibs
- testgit

I get prompted for the sudo password (as expected)  
and then the git pasword  
when I type in the password for git I get a mac dialog  
git-credentail-osxkeychain wants to use login keychain

I have unset git-credentail-osxkeychain in global git and it was not set local or system.

When I type the sudo password for the keychain it is not accepted. I can run keychain separatly and the password is accepted.

Also there is no entry in the keychain for bitbucket. I ahve removed that entry and rebooted.

Stumped. I don’t mind entering he bitbuck account password manually.

Maybe keychain is expected a different password since it is probably running as root because sudo is turned on.

Alternatively if I turn sudo off I don’t have file permissions to write to the dest folder and I get a permissions error.

Any guidance would be appreciated  
thanks

here is -vvvv output

./mymac.sh  
sudo password:

PLAY [mac] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
 EXEC [‘/bin/sh’, ‘-c’, ‘mkdir -p $HOME/.ansible/tmp/ansible-1390425267.01-152705749253268 && chmod a+rx $HOME/.ansible/tmp/ansible-1390425267.01-152705749253268 && echo $HOME/.ansible/tmp/ansible-1390425267.01-152705749253268’]  
 REMOTE\_MODULE setup  
 PUT /var/folders/wr/pd03d2ks6vj54\_nk7yp1dgtr0000gp/T/tmpacEArX TO /Users/epalmer/.ansible/tmp/ansible-1390425267.01-152705749253268/setup  
 EXEC [‘/bin/sh’, ‘-c’, ‘/usr/bin/python /Users/epalmer/.ansible/tmp/ansible-1390425267.01-152705749253268/setup; rm -rf /Users/epalmer/.ansible/tmp/ansible-1390425267.01-152705749253268/ \>/dev/null 2\>&1’]  
ok: [localhost]

TASK: [urlibs | install the original (shawn starkey written) ldap library from git] \*\*\*  
 EXEC [‘/bin/sh’, ‘-c’, ‘mkdir -p $HOME/.ansible/tmp/ansible-1390425267.3-222976469199704 && chmod a+rx $HOME/.ansible/tmp/ansible-1390425267.3-222976469199704 && echo $HOME/.ansible/tmp/ansible-1390425267.3-222976469199704’]  
 REMOTE\_MODULE git repo=[https://epalmerUR@bitbucket.org/universityofrichmond/ldap\_from\_www\_includes\_php\_ldap.git](https://epalmerUR@bitbucket.org/universityofrichmond/ldap_from_www_includes_php_ldap.git) dest=/WWW/includes/php/ldap depth=1  
 PUT /var/folders/wr/pd03d2ks6vj54\_nk7yp1dgtr0000gp/T/tmpdUTp4r TO /Users/epalmer/.ansible/tmp/ansible-1390425267.3-222976469199704/git  
 EXEC /bin/sh -c ‘sudo -k && sudo -H -S -p “[sudo via ansible, key=pktnrfdvxdtbghgjgntatexncgdcvzkw] password: " -u root /bin/sh -c '”’“‘echo SUDO-SUCCESS-pktnrfdvxdtbghgjgntatexncgdcvzkw; /usr/bin/python /Users/epalmer/.ansible/tmp/ansible-1390425267.3-222976469199704/git; rm -rf /Users/epalmer/.ansible/tmp/ansible-1390425267.3-222976469199704/ \>/dev/null 2\>&1’”‘"’’  
Password for ‘[https://epalmerUR@bitbucket.org](https://epalmerUR@bitbucket.org)’:
