clone git bare repo from local machne to remote server.

Hello,

I think cloning a private repository from GitHub to remote server is quite a hassle. The steps are:-

  • Create ssh key
  • add it Github ssh keys
  • copy private and public key to the remote server and clone

Can I clone a git repo sitting on my local machine to remote machine?
Can it be done using ansible git module?
since I am already ssh-ing into remote machine

Cheers
Praveen