# Error in win\_share

**URL:** <https://forum.ansible.com/t/error-in-win-share/21923>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [July 5, 2016, 1:56pm UTC](https://forum.ansible.com/t/error-in-win-share/21923 "2016-07-05T13:56:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![megha\_sharma](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@megha\_sharma](https://forum.ansible.com/u/megha_sharma)\
**Post date:** [July 5, 2016, 1:56pm UTC](https://forum.ansible.com/t/error-in-win-share/21923/1 "2016-07-05T13:56:59Z")

</div>

- name: Windows Sharing  
hosts: newserver  
tasks:
- name: Add secret share  
win\_share:  
name: internal  
description: top secret share  
path: D:\10 year  
list: ‘no’  
full: Administrators  
read: Users

Trying to run the above script.

I am getting this error:

ERROR! no action detected in task

The error appears to have been in ‘/root/Downloads/Playbooks/WindowsShare.yml’: line 4, column 7, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:

- name: Add secret share  
^ here

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [July 5, 2016, 3:20pm UTC](https://forum.ansible.com/t/error-in-win-share/21923/2 "2016-07-05T15:20:47Z")

</div>

Not sure -name: is valid for an entire playbook

Instead of

`

- name: Windows Sharing  
hosts: newserver  
`

try

`

- hosts: newserver  
`

---

<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:** [July 5, 2016, 9:47pm UTC](https://forum.ansible.com/t/error-in-win-share/21923/3 "2016-07-05T21:47:29Z")

</div>

That’s the (somewhat cryptic) error message for “we don’t know what that module is”. win\_share was added in 2.1, so you’d need to be running at least Ansible 2.1.0.
