# Win-Command throwing syntax error

**URL:** <https://forum.ansible.com/t/win-command-throwing-syntax-error/23011>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 11, 2016, 8:32pm UTC](https://forum.ansible.com/t/win-command-throwing-syntax-error/23011 "2016-11-11T20:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![challa.tek](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Post date:** [November 11, 2016, 8:32pm UTC](https://forum.ansible.com/t/win-command-throwing-syntax-error/23011/1 "2016-11-11T20:32:21Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Matt\_Davis](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Post date:** [November 12, 2016, 1:33am UTC](https://forum.ansible.com/t/win-command-throwing-syntax-error/23011/2 "2016-11-12T01:33:22Z")

</div>

“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

---

<div class="post-metadata">

**Author:** ![challa.tek](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@challa.tek](https://forum.ansible.com/u/challa.tek)\
**Post date:** [November 14, 2016, 1:20am UTC](https://forum.ansible.com/t/win-command-throwing-syntax-error/23011/3 "2016-11-14T01:20:12Z")

</div>

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