# unable to get password protected archived files unarchived using ansible module "unarchive"

**URL:** <https://forum.ansible.com/t/unable-to-get-password-protected-archived-files-unarchived-using-ansible-module-unarchive/26140>\
**Category:** Ansible Project\
**Created:** [November 27, 2017, 11:28am UTC](https://forum.ansible.com/t/unable-to-get-password-protected-archived-files-unarchived-using-ansible-module-unarchive/26140 "2017-11-27T11:28:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_Panchal](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Sandeep\_Panchal](https://forum.ansible.com/u/Sandeep_Panchal)\
**Post date:** [November 27, 2017, 11:28am UTC](https://forum.ansible.com/t/unable-to-get-password-protected-archived-files-unarchived-using-ansible-module-unarchive/26140/1 "2017-11-27T11:28:28Z")

</div>

Dear Team I am trying to use ansible module unarchive with option  
extra\_opts, Please help me get it understood well. below is what i am  
trying with a password protected file unzip using this module but appears  
to be not helping me. $ cat playbook-version03-zip-wrong.yml --- - name:  
Playbook for unarchive zip file hosts: all become: true gather\_facts: false  
tasks: - name: Ensuring required package present for unzip task yum: name:  
unzip state: latest - name: create temp directory for extract file: path:  
/tmp/nopassword/ state: directory - name: unarchive files unarchive:  
extra\_opts: - -P - redhat123 src: password-protected.zip dest:  
/tmp/nopassword/ ...

---

<div class="post-metadata">

**Author:** ![Sandeep\_Panchal](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Sandeep\_Panchal](https://forum.ansible.com/u/Sandeep_Panchal)\
**Post date:** [November 28, 2017, 1:57pm UTC](https://forum.ansible.com/t/unable-to-get-password-protected-archived-files-unarchived-using-ansible-module-unarchive/26140/2 "2017-11-28T13:57:07Z")

</div>

can someone help on this problem statement.
