Need help on unarchive module

12 views
Skip to first unread message

vibha rajnag

unread,
Jun 22, 2023, 7:03:20 AM6/22/23
to ansible...@googlegroups.com
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
   

Stephen Maher

unread,
Jun 22, 2023, 7:08:51 AM6/22/23
to ansible...@googlegroups.com
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





--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAN6it3pvK%2BbCEU%3DLvpqqEfsE2dr3gcavmL%3DY63NHpQsThgpvmQ%40mail.gmail.com.

vibha rajnag

unread,
Jun 22, 2023, 8:54:38 AM6/22/23
to ansible...@googlegroups.com
Thanku , I will give a try and let you know.
Thanks and Regards
Vibha Rajnag


Reply all
Reply to author
Forward
0 new messages