Using Ansible unarchive with Alpine Linux

December 10, 2020 · 1 min read

If you are running Ansible on Alpine Linux and you use the unarchive builtin module you might have faced the following error message:

[Errno 2] No such file or directory: b'-T'

The reason for this is that the unzip tool in Alpine does not have a -T option. To be able to use the unarchive Ansible module with Alpine Linux, you need to install unzip:

apk add unzip

See the related GitHub issue.


Ilias Trichopoulos

Written by Ilias Trichopoulos who lives in Zurich creating stuff. You should follow his playlists on Spotify and his DJ sets on SoundCloud!

Comments