Win-Command throwing syntax error

67 views
Skip to first unread message

chall...@gmail.com

unread,
Nov 11, 2016, 3:32:21 PM11/11/16
to Ansible Project
I have a role to install different softwares on win host.
 i am getting this error:
 

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/etc/ansible/playbooks/windows/roles/config/tasks/main.yml': line 41, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:
#
- name: installing qualys
  ^ here


The role has following command:

- name: installing qualys
  win_command: 'C:\Users\Administrator\Downloads\QualysCloudAgent.exe CustomerId={a8c4085a-07e0-c2ac-82e0-d34bc40c6f72} ActivationId={98041a26-0e07-44eb-96cc-02196bf7d46d}'
  args:
    creates: C:\Program Files (x86)\Qualys\QualysAgent\QualysAgent.exe

Matt Davis

unread,
Nov 11, 2016, 8:33:22 PM11/11/16
to Ansible Project
"no action detected in task" usually means the module you want wasn't found. In your case, I'm guessing you're not using Ansible 2.2 (check the docs for win_command, it was only added in 2.2).

-Matt

chall...@gmail.com

unread,
Nov 13, 2016, 8:20:12 PM11/13/16
to Ansible Project
Thank you so  much Matt Davis ...i updated ansible and it was working properly...thanks it was really helpful. 
Reply all
Reply to author
Forward
0 new messages