Sounds like you'd have an asset server role that gets executed against
the asset server that collects all the assets, followed by a role that
gets executed against "target host".   Take a look at the get_url
module for getting files from the web to your asset server, and
get_url or synchronize method to pull them from your asset server to
your target host.

- James


On Thu, Feb 27, 2014 at 10:54 PM, Jason Sheedy <[email protected]> wrote:
> Hi guys,
> I'm quite new to Ansible and would like to perform the following in an
> idempotent fashion. I would basically like to minimise the number of
> downloads I need to perform from the web for certain file assets, so my plan
> is to download them once to an asset server and then retrieve them from
> there for all the target hosts in our cluster.
>
> As far as I know the flow would go something like this.
>
> # does file exist on target host
>   # if yes exit
>   # if no retrieve from asset server
> # does file exist on asset server
> # if not download from web to asset server
> # copy file from asset server to target host
>
> Are there any modules I could use to do this or are there any other
> recommendations on best practices for this scenario?
>
> Any help would be appreciated.
>
> Cheers,
>
> Jason
>
> --
> 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/58d8fa8a-c250-4c07-9b22-c7a20cd789c7%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/CAJvmrNPpvPJ9c%2BW9PfofA4_ZC7k0XfJPffgxdiZF2uP28C8bvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to