Get-AnsibleParam: Missing required argument: _raw_params

2,393 views
Skip to first unread message

Vikrant Kaushik

unread,
Nov 1, 2019, 2:56:00 PM11/1/19
to Ansible Project
Hi All,

I'm writing a playbook task to run WinZip.wzmul after WinZip installation for Winzip registration. please note WinZip has been installed without any incident.

Playbook task:
**************************************
- name: Install wzmul
  win_command:
    path: '{{ tempdir.path }}\WinZip.wzmul'
***********************************************

Playbook execution error:
************************************************************
fatal: [10.10.177.242]: FAILED! => {
    "changed": false,
    "msg": "Get-AnsibleParam: Missing required argument: _raw_params"
}
*********************************************************

Can someone please advise where we are failing.

Matt Martz

unread,
Nov 1, 2019, 3:17:37 PM11/1/19
to ansible...@googlegroups.com
`win_command` does not accept a `path` argument: https://docs.ansible.com/ansible/latest/modules/win_command_module.html

I am guessing what you want is:

- name: Install wzmul
  win_command: '{{ tempdir.path }}\WinZip.wzmul'

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6a6f02d2-ecff-434c-b757-5c533cd64306%40googlegroups.com.


--
Matt Martz
@sivel
sivel.net

Vikrant

unread,
Nov 2, 2019, 1:38:32 AM11/2/19
to ansible...@googlegroups.com
Thank, I tired of this option and now getting:

fatal: [10.10.177.242]: FAILED! => {
    "changed": false,
    "cmd": "C:\\Users\\SA042ANS\\AppData\\Local\\Temp\\ansible.ej0o1gbb.pcowinzip\\WinZip.wzmul",
    "msg": "Exception calling \"CreateProcess\" with \"5\" argument(s): \"CreateProcessW() failed (%1 is not a valid Win32 application, Win32ErrorCode 193)\"",
    "rc": 2
}

Playbook task:
- name: Install wzmul
  win_command: '{{ tempdir.path }}\WinZip.wzmul'


regards

Vikrant


You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/kc2cWhvSjIc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-y8%2BWMFLWc7TLidO_i4FQHDXULNQdy9oAgDadZqF9LNQ%40mail.gmail.com.

Jordan Borean

unread,
Nov 2, 2019, 5:05:15 PM11/2/19
to Ansible Project
That’s because a wzmul is not a valid executable. It sounds like you need to call another exe that is designed run those scripts/files and pass in the path to your .wzmul file but I’m unsure what that may be.

Vikrant Kaushik

unread,
Nov 4, 2019, 1:17:16 PM11/4/19
to Ansible Project
tried but nothing working. 

regards
Vikrant

Matt Martz

unread,
Nov 4, 2019, 1:21:19 PM11/4/19
to ansible...@googlegroups.com
A quick google search leads me to believe the file can just be dropped in the application install directory:


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.

Vikrant

unread,
Nov 4, 2019, 1:52:19 PM11/4/19
to ansible...@googlegroups.com
thank you but they are also saying:  The WinZip.wzmul registration file must be downloaded separately from the WinZip installation file(s) and it will need to be copied to the WinZip folder described above. The file can be copied manually to the target folder or users can double click on the WinZip.wzmul file to register.

You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/kc2cWhvSjIc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v8M0jxO9ZNjAZxv9Q%2BFHedtOqEdW2QeNoDqoxaYYRMCCA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages