unable to get password protected archived files unarchived using ansible module "unarchive"
15 views
Skip to first unread message
Sandeep Panchal
unread,
Nov 27, 2017, 6:28:28 AM11/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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/
...
Sandeep Panchal
unread,
Nov 28, 2017, 8:57:07 AM11/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message