Member-only story
Extract an archive in Windows-like systems — Ansible module win_unzip
How to automate the extraction of an example ZIP compressed archive with a text file inside creating the output directory on a Windows-like system with Ansible module win_unzip.
How to extract a ZIP compressed archive in Windows-like systems in Ansible?
I’m going to show you a live demo and some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot.
Ansible extracts an archive in Windows-like systems
- `
community.windows.win_unzip
` - Unzips compressed files and archives on the Windows node
Today we’re talking about the Ansible module `win_unzip
`.
The full name is `community.windows.win_unzip
`, which means that is part of modules maintained by the community for Windows target hosts.
It unzips compressed files and archives on the Windows node.
It supports .zip files natively and can handle also other 7zip formats when combined with the Powershell Community Extensions (PSCX) module.
For Linux targets, use…