Unzip on windows is giving You cannot call a method on a null-valued expression

32 views
Skip to first unread message

Deepa Yr

unread,
Mar 7, 2016, 9:01:28 AM3/7/16
to Ansible Project
  name: "Unpack license into Client install"
  win_unzip: 
    dest: "{{ install_path }}\\"
    src: "{{ install_base_path }}\\Bundles.zip"

Path {{ install_path }}\\ already exists.

When above code is executed, getting this error 

fatal: []: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "win_unzip"}, "msg": "Error unzipping C:\\\\Bundles.zip to C:\\client\\! Msg: You cannot call a method on a null-valued expression."}

Any help here in resolving this ?

J Hawkesworth

unread,
Mar 7, 2016, 9:29:30 AM3/7/16
to Ansible Project
Does install_base_path exist?

Deepa Yr

unread,
Mar 7, 2016, 11:45:28 PM3/7/16
to Ansible Project
Yes install_base_path exists and I can see it is getting replaced with correct value C:\\\\Bundles.zip

Deepa Yr

unread,
Mar 8, 2016, 2:09:38 AM3/8/16
to Ansible Project
Its resolved now. There are four slash (////) after C: . Once that is changed it ran fine. Thanks
Reply all
Reply to author
Forward
0 new messages