# Subversion only on server

**URL:** <https://forum.ansible.com/t/subversion-only-on-server/15770>\
**Category:** Ansible Project\
**Created:** [July 24, 2014, 7:03pm UTC](https://forum.ansible.com/t/subversion-only-on-server/15770 "2014-07-24T19:03:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [July 24, 2014, 7:03pm UTC](https://forum.ansible.com/t/subversion-only-on-server/15770/1 "2014-07-24T19:03:50Z")

</div>

If I am storing templates and other files in subversion, does  
the client need to be able to reach the svn server or can I just have  
the ansible server grab files from svn server and feed them to client?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 24, 2014, 10:48pm UTC](https://forum.ansible.com/t/subversion-only-on-server/15770/2 "2014-07-24T22:48:33Z")

</div>

Could go either way.

If you had a pattern like so:

- hosts: localhost  
tasks:

- svn: …

- hosts: webservers  
tasks:

- synchronize: …

You could do a local checkout to the server once and then blast it out, rather than have every server connect to SVN directly.

unarchive would be another alternative if you had a tarball rather than synchronize, which is a wrapper around rsync.

---

<div class="post-metadata">

**Author:** ![Mauricio\_Tavares](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@Mauricio\_Tavares](https://forum.ansible.com/u/Mauricio_Tavares)\
**Post date:** [July 25, 2014, 9:51am UTC](https://forum.ansible.com/t/subversion-only-on-server/15770/3 "2014-07-25T09:51:25Z")

</div>

> Could go either way.
> 
> If you had a pattern like so:
> 
> - hosts: localhost  
> &nbsp;&nbsp;tasks:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- svn: ...
> 
> - hosts: webservers  
> &nbsp;&nbsp;tasks:  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- synchronize: ...
> 
> You could do a local checkout to the server once and then blast it out,  
> rather than have every server connect to SVN directly.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I would prefer doing that; it would be much more efficient than  
connecting every client to SVN. When I first read  
[http://docs.ansible.com/subversion\_module.html](http://docs.ansible.com/subversion_module.html) I thought you could  
only use subversion by installing it on the client.

> unarchive would be another alternative if you had a tarball rather than  
> synchronize, which is a wrapper around rsync.

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I will need to check that; may not be what I want to use here  
but it is worth checking for a future task.
