You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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.
J Hawkesworth
unread,
Feb 18, 2015, 1:46:51 PM2/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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
Warren Seine
unread,
Feb 24, 2015, 5:55:44 AM2/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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.
Dick Davies
unread,
Feb 24, 2015, 7:27:54 AM2/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible list
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).