Error in win_share

32 views
Skip to first unread message

megha sharma

unread,
Jul 5, 2016, 9:56:59 AM7/5/16
to Ansible Project
- 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


J Hawkesworth

unread,
Jul 5, 2016, 11:20:47 AM7/5/16
to Ansible Project
Not sure -name: is valid for an entire playbook

Instead of
- name: Windows Sharing
  hosts
: newserver


try 

-  hosts: newserver

Matt Davis

unread,
Jul 5, 2016, 5:47:29 PM7/5/16
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages