community.general icon indicating copy to clipboard operation
community.general copied to clipboard

Add uncompress module

Open J0WI opened this issue 5 years ago • 7 comments

Moving this from https://github.com/ansible/ansible/pull/23048

SUMMARY

Add uncompress module, for people who wish to uncompress things like .gz or .bz2 or .xz which are not archives, and would not be appropriate for the unarchive module.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

uncompress

J0WI avatar Oct 05 '20 21:10 J0WI

Files identified in the description: None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Oct 05 '20 21:10 ansibullbot

Is this issue still relevant ? It seems that this is already handled somewhere else: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/unarchive_module.html#notes

Warkdev avatar Jan 10 '23 20:01 Warkdev

unarchive is extracting archives. An uncompress module would uncompress files. That's something else. (For example uncompress would convert a .tar.gz file to a .gz file, while unarchive would extract the tarball.)

felixfontein avatar Jan 12 '23 20:01 felixfontein

(For example uncompress would convert a .tar.gz file to a .gz file, while unarchive would extract the tarball.)

* .tar

This is useful for .img.gz, .sql.gz, .json.gz etc. where you just have a single compressed file without any tarball wrapper.

J0WI avatar Jan 16 '23 16:01 J0WI

It would really be helpful. At the moment the only way of unpacking a zipped file is via the command module. I would expect Ansible to be able to handle a zipped file. This seems to be an issue since 2016.

kagehisa avatar Jun 26 '24 07:06 kagehisa

@kagehisa Ansible has been able to extract ZIP archives for a long time, see the ansible.builtin.unarchive module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/unarchive_module.html#notes

This issue is about uncompressing files, not about extracting archives.

felixfontein avatar Jun 26 '24 09:06 felixfontein

Ok I don't want to spark the same discussions aubout semantics as in the previous issues for the unarchive module. I'm talking about a zipped file in the context of compression. So taking something.bz2/.gz/.xz and making it to something. What this something is should not matter.

kagehisa avatar Jun 26 '24 10:06 kagehisa