I have set up everyhing I could find, but still cloning a repo from GitHub hangs the provisioning process.
I have:
- server in known_hosts
.ssh/config
Host github.com ForwardAgent yes StrictHostKeyChecking no
copied private key
- public key is in authorized_keys
- the command runs as
vagrant
user the play is:
- name: Checkout from git git: [email protected]:username/repositoryname.git dest=/srv/website
sudo
, because it breaks agent forwarding. – Hoylessh-agent
port to remote SSH port, and going throughsudo
breaks this chain unless you work around this. See https://mcmap.net/q/263854/-ssh-agent-forwarding-with-ansible – Hoyle