Subversion only on server

59 views
Skip to first unread message

Mauricio Tavares

unread,
Jul 24, 2014, 3:03:57 PM7/24/14
to ansible...@googlegroups.com
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?

Michael DeHaan

unread,
Jul 24, 2014, 6:48:36 PM7/24/14
to ansible...@googlegroups.com
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.





--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHEKYV6cgsG3tJ6zJqBZ%3DmJ5nxf049T94xp_zvaz8MmN8zE9kw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mauricio Tavares

unread,
Jul 25, 2014, 5:51:30 AM7/25/14
to ansible...@googlegroups.com
On Thu, Jul 24, 2014 at 6:48 PM, Michael DeHaan <mic...@ansible.com> wrote:
> 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.
>
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 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.
>
I will need to check that; may not be what I want to use here
but it is worth checking for a future task.

>
> On Thu, Jul 24, 2014 at 3:03 PM, Mauricio Tavares <raub...@gmail.com>
> wrote:
>>
>> 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?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-proje...@googlegroups.com.
>> To post to this group, send email to ansible...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAHEKYV6cgsG3tJ6zJqBZ%3DmJ5nxf049T94xp_zvaz8MmN8zE9kw%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgw2i3e6Sb1x98tpzfvq00dkbmjmEzaN9YbAeyExPRgbTA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages