I go via a link https://download.sonatype.com/nexus/3/latest-unix.tar.gz whitch results into downloading the specific nexus-3.67.0-03-unix.tar.gz
I do not know the exact version upfront so I am want to mimic unarchiving similar to tar -xvf /opt/nexus-3*.tar.gz but can not figure out a way to apply any sort of * logic in the src option of the unarchive TASK though.
Is that doable?
I tried to make this work via stat, but that neither would allow * in its path option.
I’m unable to test since download.sonatype.com is blocked by my company firewall, but I think you can just register the get_url: task to discover what the resulting filename was. Then unarchive the variable name.
Another approach would be to use the URI module to do a HEAD request to get the Location of the file and then get the filename from that, for example (untested):