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
mahespth
(Steve Maher)
2
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
Thanku , I will give a try and let you know.