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.


On Tuesday, July 5, 2016 at 8:20:47 AM UTC-7, J Hawkesworth wrote:
>
> Not sure -name: is valid for an entire playbook
>
> Instead of
> - name: Windows Sharing
>   hosts: newserver
>
>
> try 
>
> -  hosts: newserver
>
>
>
>
> On Tuesday, July 5, 2016 at 2:56:59 PM UTC+1, megha sharma wrote:
>>
>> - 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
>>
>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/470aec5a-0c8a-4b18-b3b1-73d2198dd204%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to