diff --git a/lib/ansible/modules/extras/files/archive.py b/lib/ansible/modules/extras/files/archive.py index f6791ff53d5..76dcb9cf084 100644 --- a/lib/ansible/modules/extras/files/archive.py +++ b/lib/ansible/modules/extras/files/archive.py @@ -175,7 +175,7 @@ def main(): successes.append(path) elif compression == 'zip': - archive = zipfile.ZipFile(creates, 'wb') + archive = zipfile.ZipFile(creates, 'w') for path in archive_paths: archive.write(path, path[len(arcroot):])