You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edition: Windows Server 2022 Standard
Version: 21H2
Installed on 9/8/2022
OS Build: 20348.2402
STEPS TO REPRODUCE
---
- name: Describe the purpose of this playbook herehosts: redacted.example.comgather_facts: yestasks:
- name: Extract the time zone zip filescommunity.windows.win_unzip:
src: 'C:\Install\{{ zone_url | basename }}'dest: 'C:\Install\'recurse: yesdelete_archive: nocreates: 'C:\Install\{{ zone_url | basename }}\{{ zone_url | basename }}\timezone_{{ zone_url | basename | splitext | first }}.sql'loop:
- https://mirror.mariadb.org/zoneinfo/zoneinfo.ziploop_control:
loop_var: zone_url
EXPECTED RESULTS
The zip file is unziped
ACTUAL RESULTS
I get an error complaining that the extension isn't zip
ansible-playbook t5.yml -vvvv
ansible-playbook [core 2.12.4]
config file = /home/noelsc/git/ansible/ansible.cfg
configured module search path = ['/home/noelsc/git/ansible']
ansible python module location = /home/noelsc/.local/lib/python3.8/site-packages/ansible
ansible collection location = /home/noelsc/.ansible/collections:/usr/share/ansible/collections
executable location = /home/noelsc/.local/bin/ansible-playbook
python version = 3.8.10 (default, Nov 22 2023, 10:22:35) [GCC 9.4.0]
jinja version = 3.1.1
libyaml = True
Using /home/noelsc/git/ansible/ansible.cfg as config file
setting up inventory plugins
redirecting (type: inventory) ansible.builtin.nmap to community.general.nmap
Loading collection community.general from /home/noelsc/.ansible/collections/ansible_collections/community/general
script declined parsing /home/noelsc/git/ansible/inventory/hosts.yml as it did not pass its verify_file() method
host_list declined parsing /home/noelsc/git/ansible/inventory/hosts.yml as it did not pass its verify_file() method
Parsed /home/noelsc/git/ansible/inventory/hosts.yml inventory source with yaml plugin
Loading collection community.windows from /home/noelsc/.ansible/collections/ansible_collections/community/windows
Loading callback plugin default of type stdout, v2.0 from /home/noelsc/.local/lib/python3.8/site-packages/ansible/plugins/callback/default.py
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
Loading callback plugin teams of type notification, v2.0 from /home/noelsc/git/ansible/callback_plugins/redis_logging.py
Loading callback plugin teams of type notification, v2.0 from /home/noelsc/git/ansible/callback_plugins/teams.py
PLAYBOOK: t5.yml ****************************************************************************************************************************************************************************************************************************************************************************************
Positional arguments: t5.yml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/home/noelsc/git/ansible/inventory/hosts.yml',)
forks: 5
1 plays in t5.yml
PLAY [Describe the purpose of this playbook here] *******************************************************************************************************************************************************************************************************************************************************
teams update attempts 0
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************************************************************************
task path: /home/noelsc/git/ansible/t5.yml:2
redirecting (type: modules) ansible.builtin.setup to ansible.windows.setup
Loading collection ansible.windows from /home/noelsc/.ansible/collections/ansible_collections/ansible/windows
Using module file /home/noelsc/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/setup.ps1
Pipelining is enabled.
<redacted.example.com> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO redacted.example.com
EXEC (via pipeline wrapper)
ok: [redacted.example.com]
META: ran handlers
TASK [Extract the time zone zip files] ******************************************************************************************************************************************************************************************************************************************************************
task path: /home/noelsc/git/ansible/t5.yml:6
Using module file /home/noelsc/.ansible/collections/ansible_collections/community/windows/plugins/modules/win_unzip.ps1
Pipelining is enabled.
<redacted.example.com> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO redacted.example.com
EXEC (via pipeline wrapper)
failed: [redacted.example.com] (item=https://mirror.mariadb.org/zoneinfo/zoneinfo.zip) => {
"ansible_loop_var": "zone_url",
"changed": false,
"dest": "C:\\Install\\",
"msg": "PowerShellCommunityExtensions PowerShell Module (PSCX) is required for non-'.zip' compressed archive types.",
"removed": false,
"src": "C:\\Install\\zoneinfo.zip",
"zone_url": "https://mirror.mariadb.org/zoneinfo/zoneinfo.zip"
}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************************************************************************
redacted.example.com : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
teams update attempts 0
The text was updated successfully, but these errors were encountered:
SUMMARY
I am receiving an invalid error with the win_unzip module when attempting to unzip a zip file.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Edition: Windows Server 2022 Standard
Version: 21H2
Installed on 9/8/2022
OS Build: 20348.2402
STEPS TO REPRODUCE
EXPECTED RESULTS
The zip file is unziped
ACTUAL RESULTS
I get an error complaining that the extension isn't zip
The text was updated successfully, but these errors were encountered: