# WebApp deployment from a git repo over SSH

**URL:** <https://forum.ansible.com/t/webapp-deployment-from-a-git-repo-over-ssh/11509>\
**Category:** Ansible Project\
**Created:** [May 6, 2012, 5:14pm UTC](https://forum.ansible.com/t/webapp-deployment-from-a-git-repo-over-ssh/11509 "2012-05-06T17:14:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Will2](https://avatars.discourse-cdn.com/v4/letter/w/a587f6/32.png) [@Will2](https://forum.ansible.com/u/Will2)\
**Post date:** [May 6, 2012, 5:14pm UTC](https://forum.ansible.com/t/webapp-deployment-from-a-git-repo-over-ssh/11509/1 "2012-05-06T17:14:09Z")

</div>

Hey all,

I’ve looked through the docs and while I found the git module (which is very cool) but the docs say it only supports git or http. Up until now I’ve done all of my repo cloning/pulling via SSH, and would like to continue the practice. Is it at all possible to deploy an application from a git repo, over SSH (without making that repository available to the world)?

Perhaps I’m just missing part of the functionality (if there’s another way to deploy securely from a git repo) or maybe it’s not built yet, either way I’m curious to hear. Great work on Ansible, I’m very glad I found this when I did, as I was just about to start implementing Puppet everywhere, and this is so much simpler!

Cheers!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 6, 2012, 5:17pm UTC](https://forum.ansible.com/t/webapp-deployment-from-a-git-repo-over-ssh/11509/2 "2012-05-06T17:17:13Z")

</div>

> Hey all,
> 
> I've looked through the docs and while I found the git module (which is very  
> cool) but the docs say it only supports git or http. Up until now I've done  
> all of my repo cloning/pulling via SSH, and would like to continue the  
> practice. Is it at all possible to deploy an application from a git repo,  
> over SSH (without making that repository available to the world)?

Yeah, that's not actually true, it does support ssh://, provided you  
have authorized keys set up for that particular host. If you don't  
mind, file a ticket on the docs project so we can correct that.

> Perhaps I'm just missing part of the functionality (if there's another way  
> to deploy securely from a git repo) or maybe it's not built yet, either way  
> I'm curious to hear. Great work on Ansible, I'm very glad I found this when  
> I did, as I was just about to start implementing Puppet everywhere, and this  
> is so much simpler!

Glad to hear it!

---

<div class="post-metadata">

**Author:** ![Will2](https://avatars.discourse-cdn.com/v4/letter/w/a587f6/32.png) [@Will2](https://forum.ansible.com/u/Will2)\
**Post date:** [May 6, 2012, 5:27pm UTC](https://forum.ansible.com/t/webapp-deployment-from-a-git-repo-over-ssh/11509/3 "2012-05-06T17:27:23Z")

</div>

Oh, great! Thanks!

I put in a ticket for it.

Cheers!
