git repo to localhost

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 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’: