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:
- ansible.builtin.command:  
    cmd: gunzip "{{ dest_file }}" "{{ decompressed_file }}"
    creates: "{{ decompressed_file }}"

Regards





> On 22 Jun 2023, at 12:02, vibha rajnag <[email protected]> wrote:
> 
> 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
>    
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAN6it3pvK%2BbCEU%3DLvpqqEfsE2dr3gcavmL%3DY63NHpQsThgpvmQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/ansible-project/CAN6it3pvK%2BbCEU%3DLvpqqEfsE2dr3gcavmL%3DY63NHpQsThgpvmQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0FE8FC92-491F-4207-8C5A-54F485B0D05A%40gmail.com.

Reply via email to