'Ansible failed to unpack zip file no error description
I am using this method of archiving on a windows remote
- name: Archive the files
win_shell : Get-ChildItem '{{install_path}}\*' | where { $_.Name -notin ("Logs", "log")} | Compress-Archive -DestinationPath '{{tmp_backup_file}}' -Update
register: backup_status
become: true
retries: 2 # will retry up to 2 times
delay: 10 # 10 second delay
until: backup_status.stderr_lines | length == 0
and then moving it to the local ansible linux machine, where I attempt to unpack using
- name: Unarchive the zip in one location
unarchive:
src: backup.zip
dest: ./destination_throwaway
delegate_to: 127.0.0.1
this is run on ansible tower and produces this error
"msg": "failed to unpack /var/lib/awx/.ansible/tmp/ansible-tmp-1643327369.2372937-179-107199938609909/source to ./destination_throwaway",
"handler": "ZipArchive",
and no other explanation!
Does anyone know what could possibly be the issue?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
