Ok, simple and straightforward.

On Tuesday, February 24, 2015 at 1:27:54 PM UTC+1, Dick Davies wrote:
>
> I use a pattern like this to only get the tarball when the 
> 'grafana_version' var changes. 
> Seems to work pretty well (NB: this happens up on the server, no local 
> caching). 
>
> - name: download grafana tarball 
>   get_url: url=
> http://grafanarel.s3.amazonaws.com/grafana-{{grafana_version}}.tar.gz 
>            dest=/root/.grafana-{{grafana_version}}.tar.gz 
>
> - name: extract tarball to docroot 
>   unarchive: src=/root/.grafana-{{grafana_version}}.tar.gz dest=/opt/ 
>              copy=no creates=/opt/grafana-{{grafana_version}}/build.txt 
>
> On 24 February 2015 at 10:55, Warren Seine <[email protected] 
> <javascript:>> wrote: 
> > Non, I'm not use a local action. That would involve sending the data 
> back to 
> > the managed machines at some point, basically the same as downloading 
> the 
> > file directly on the managed machine. 
> > 
> > Varnish could make sense, though I'm not sure if it's not a bit 
> overkill. I 
> > would have thought of a simple cache directory where all downloaded 
> files 
> > would automatically go. 
> > 
> > On Wednesday, February 18, 2015 at 7:46:51 PM UTC+1, J Hawkesworth 
> wrote: 
> >> 
> >> Are you running get_url as a local action?  (on the ansible master 
> rather 
> >> than on your managed machines)? 
> >> 
> >> I'd be tempted to try using something like varnish myself. 
> >> 
> >> Jon 
> >> 
> >> On Wednesday, February 18, 2015 at 9:02:00 AM UTC, Warren Seine wrote: 
> >>> 
> >>> Hi, 
> >>> 
> >>> For performance (faster first deployment), safety (in case the third 
> >>> party goes down), and bad connectivity (no internet) reasons, I'd like 
> to 
> >>> cache downloads made with get_url. 
> >>> 
> >>> I know this can be done manually, but I wonder if there's a module to 
> do 
> >>> it. Would a cache=yes property make sense in the get_url module? 
> >>> 
> >>> Regards, 
> >>> Warren. 
> > 
> > -- 
> > 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 [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/c6fcaedd-6b5c-4219-baf7-6011fe63b76d%40googlegroups.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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9253ec0a-0f1b-4994-a6c9-2d8f54908b2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to