ansible / ansible-modules-core

Ansible modules - these modules ship with ansible
1.3k stars 1.95k forks source link

unarchive does not work for .zip file on ansible 2.2.1 on windows Environment #5894

Closed ksrajith closed 7 years ago

ksrajith commented 7 years ago

Issue Type:

Bug Report

Ansible Version: $ ansible --version ansible 2.2.1.0 (stable-2.2 39acdde5aa) last updated 2017/02/08 16:41:08 (GMT +650) lib/ansible/modules/core: (detached HEAD 59c9a6d3c2) last updated 2017/02/08 16:42:29 (GMT +650) lib/ansible/modules/extras: not found - use git submodule update --init lib/ansible/modules/extras config file = configured module search path = ['/opt/ansible/library']

Environment: setup ansible using cygwin on windows 8. Setup as per the below url: http://everythingshouldbevirtual.com/ansible-using-ansible-on-windows-via-cygwin

Summary: unarchive feature does not work for me in windows. but same script works fine in ubuntu.

Steps to reproduce: Playbook role:

- name: extracting files unarchive: src: /mnt/ansible-mig/repo/product-ids/modules/distribution/target/SNAPSHOT.zip dest: /mnt/ansible-mig/repo/product-ids/modules/distribution/target copy: no

Expected Results: unarchive to the destination

Actual results:

TASK [extacting files] ********************************************************* fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to find handler for \"/mnt/ansible-mig/repo/product-ids/modules/distribution/target/SNAPSHOT.zip\". Make sure the required command to extract the file is installed. Command \"/usr/bin/tar\" could not handle archive. Command \"unzip\" not found."}

ansibot commented 7 years ago

This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible

Please read through the repomerge page in the dev guide.