Downloading files with a specific regular expression from remote http / https host to a target server local path.
So would like to wget http://remote.com/rpm/app*.rpm to a set of target servers. get_url doesn't appear to support patterns as per Ansible Documentation. On the other hand, with_fileglob supports regular expressions and patterns but doesn't work with HTTP.
Looking for suggestions.
Cheers,
TK
It's fundamentally impossible to do what you want, unless the remote
server offers some sort of file system equivalent, like a directory
index.
Dick
On Thu, 26 Mar 2020 at 19:24, Tom K. <tom...@microdevsys.com> wrote:
>
> Having some difficulty finding what is the Ansible code to do this:
>
> Downloading files with a specific regular expression from remote http / https host to a target server local path.
>
>
> So would like to wget http://remote.com/rpm/app*.rpm to a set of target servers. get_url doesn't appear to support patterns as per Ansible Documentation. On the other hand, with_fileglob supports regular expressions and patterns but doesn't work with HTTP.
>
>
> Looking for suggestions.
>
>
> Cheers,
>
> TK
>
> --
> 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...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f57ddea1-b412-472f-977c-b933f97ef43f%40googlegroups.com.
# wget -r -nd --no-parent -A '*glib*' http://mirror.centos.org/centos/7/os/x86_64/Packages/
# ls -altri|grep -v glib
total 72652
201326721 dr-xr-x---. 9 root root 4096 Mar 27 15:04 ..
135239432 drwxr-xr-x. 2 root root 8192 Mar 27 15:07 .
# To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f57ddea1-b412-472f-977c-b933f97ef43f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5736baef-e4e7-45cd-91f0-5b571a5c2d24%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5736baef-e4e7-45cd-91f0-5b571a5c2d24%40googlegroups.com.