Issues with ssh based git clone of testing branch
Just trying to understand why this works:
/usr/local/bin/ansible-pull -d /usr/local/ansible -U git@git.callpipe.com:finn/initial-ansible.git -C master
but this doesn't?
/usr/local/bin/ansible-pull -d /usr/local/ansible -U git@git.callpipe.com:finn/initial-ansible.git -C testing
which forces me to do the command below to get initial-ansible installed & running on the testing branch.
/usr/local/bin/ansible-pull -d /usr/local/ansible-initial -s 10 -U https://git.callpipe.com/finn/initial-ansible.git -C testing
For reference, here is what I get when running the first command:
✘ ⚡ root@raspberrypi /home/pi /usr/local/bin/ansible-pull -d /usr/local/ansible -U git@git.callpipe.com:finn/initial-ansible.git -C testing
Starting Ansible Pull at 2016-10-07 08:21:40
/usr/local/bin/ansible-pull -d /usr/local/ansible -U git@git.callpipe.com:finn/initial-ansible.git -C testing
localhost | FAILED! => {
"changed": false,
"cmd": "/usr/bin/git ls-remote origin -h refs/heads/testing",
"failed": true,
"msg": "Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.",
"rc": 128,
"stderr": "Permission denied (publickey).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n",
"stdout": "",
"stdout_lines": []
}