I think it could make the life of ansible users a little bit easier if we could just have a additional parameter to get_url specifying if we want to decompress the file after the download is done. Something like:
In that case dest should be a directory
<personal_opinion>
Trying to chain multiple actions together like this feels like an Ansible anti-pattern. The option set starts to explode, the documentation gets unwieldy, and the error cases multiply.
Having them as separate tasks makes more sense to me. I only want to do an uncompress if the get_url resulted in a change. Easier to express that with a register and a conditional, and easier for my playbook readers to follow what’s going on.
</personal_opinion>
-jlk
I’d concur with Jesse above.
I’d possibly consider letting unarchive take a src=http://, to initiate a download on the remote, but that’s probably more trouble than it’s worth in terms of implications and duplicated efforts.
We definitely want to caution against the permutations building up in all the modules.