# Feel free to test and use new compress - decompress module

**URL:** <https://forum.ansible.com/t/feel-free-to-test-and-use-new-compress-decompress-module/4471>\
**Category:** Project Discussions\
**Tags:** dev, module, playbook\
**Created:** [March 20, 2024, 9:01am UTC](https://forum.ansible.com/t/feel-free-to-test-and-use-new-compress-decompress-module/4471 "2024-03-20T09:01:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrAibo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mraibo/32/2635_2.png) [@mrAibo](https://forum.ansible.com/u/mrAibo)\
**Post date:** [March 20, 2024, 9:01am UTC](https://forum.ansible.com/t/feel-free-to-test-and-use-new-compress-decompress-module/4471/1 "2024-03-20T09:01:37Z")

</div>

Dear colleagues.  
For my work, I have created a new module **multi\_compress** for compress - decompress, which is more comfortable and faster than standard modules.  
I apologize in advance if I got into the wrong section. I hope the moderators will correct me then.  
.

## Features

- **Support for Multiple Archive Formats** : Handles common archive formats including `tar.gz`, `tar.bz2`, and `zip`, covering a wide range of archiving needs.
- **Compression and Decompression** : Offers compression using `gzip`, `bzip2`, and the parallel compression utility `pigz` for faster compression speeds on multicore systems. Decompression is automatically handled based on the archive format.
- **Flexible File Inclusion/Exclusion** : Allows specifying files or patterns to include or exclude from the archive, providing control over the archive’s contents.
- **Automatic Format Detection** : For unarchiving tasks, the module can automatically detect the archive format based on the file extension, simplifying task definitions.
- **Optional Source Deletion** : After successful archiving or unarchiving, the source files or directories can be optionally deleted, helping manage disk space.

I have made a full description on [github](https://github.com/mrAibo/ansible_yacompress/tree/main).  
You are welcome to test and use it.

---

<div class="post-metadata">

**Author:** ![jpmens](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jpmens/32/5543_2.png) [@jpmens](https://forum.ansible.com/u/jpmens)\
**Post date:** [March 20, 2024, 10:02am UTC](https://forum.ansible.com/t/feel-free-to-test-and-use-new-compress-decompress-module/4471/2 "2024-03-20T10:02:37Z")

</div>

I note it doesn’t contain standard `DOCUMENTATION` strings (and on line 157 it says “Beispiel” 😉 )

---

<div class="post-metadata">

**Author:** ![mrAibo](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mraibo/32/2635_2.png) [@mrAibo](https://forum.ansible.com/u/mrAibo)\
**Post date:** [March 20, 2024, 11:48am UTC](https://forum.ansible.com/t/feel-free-to-test-and-use-new-compress-decompress-module/4471/3 "2024-03-20T11:48:00Z")

</div>

I apologise - my mistake. Writing documentation is really necessary, but sometimes very lazy. 🙂  
I hope I’m better now. 🙂
