Sounds like you can use the 'get_url' module with 'delegate_to: 127.0.0.1' to download the file locally, then use the 'copy' module to copy it to the remote host.
On Fri, Feb 7, 2014 at 5:55 AM, Martin Jöhren <[email protected]> wrote: > Hi, > > I am looking for a way to download a file to the local machine where ansible > was started and then copy that file to the remote server. Background: due to > security issues we cannot directly download the file from our nexus on the > remote server so we need to download it first to the local machine and the > use that file in ansible. Currently we start a small shell script before > using ansible for this deployment but this is not very nice ;) Is there > something which can be used currently or do we have to write an own module? > > Thanks, > > Martin > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. -- Romeo -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
