# Need help on unarchive module

**URL:** <https://forum.ansible.com/t/need-help-on-unarchive-module/38141>\
**Category:** Ansible Project\
**Created:** [June 22, 2023, 11:02am UTC](https://forum.ansible.com/t/need-help-on-unarchive-module/38141 "2023-06-22T11:02:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibha\_rajnag](https://avatars.discourse-cdn.com/v4/letter/v/ecb155/32.png) [@vibha\_rajnag](https://forum.ansible.com/u/vibha_rajnag)\
**Post date:** [June 22, 2023, 11:02am UTC](https://forum.ansible.com/t/need-help-on-unarchive-module/38141/1 "2023-06-22T11:02:53Z")

</div>

Hi All,

I have some rest api call which is generating some result in csv.gz extention.

I have used unarchive module in ansible.  
It says this module does not support .gz file which dies not have tar.

Please help me, how i can uncompress this file.

Thanks&Regards  
Vibha Rajnag  
8088760701

---

<div class="post-metadata">

**Author:** ![mahespth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mahespth/32/252_2.png) [@mahespth](https://forum.ansible.com/u/mahespth)\
**Post date:** [June 22, 2023, 11:08am UTC](https://forum.ansible.com/t/need-help-on-unarchive-module/38141/2 "2023-06-22T11:08:28Z")

</div>

You .gz file is unlikely and archive but just a zipped file, the module you refer is for archives such a tar/gzip etc.

You can unzip with something similar to:

```auto
- ansible.builtin.command:  
    cmd: gunzip "{{ dest_file }}" "{{ decompressed_file }}"
    creates: "{{ decompressed_file }}"

```

Regards

---

<div class="post-metadata">

**Author:** ![vibha\_rajnag](https://avatars.discourse-cdn.com/v4/letter/v/ecb155/32.png) [@vibha\_rajnag](https://forum.ansible.com/u/vibha_rajnag)\
**Post date:** [June 22, 2023, 12:54pm UTC](https://forum.ansible.com/t/need-help-on-unarchive-module/38141/3 "2023-06-22T12:54:10Z")

</div>

Thanku , I will give a try and let you know.
