Win-Command throwing syntax error

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:

“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

Thank you so much Matt Davis …i updated ansible and it was working properly…thanks it was really helpful.