You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
New in version 2.1.
- Windows 8.1 / Windows 2012 or newer
parameter | required | default | choices | comments |
---|---|---|---|---|
caching_mode (added in 2.3) |
no | Manual |
|
Set the CachingMode for this share. |
change |
no | Specify user list that should get read and write access on share, separated by comma. | ||
deny |
no | Specify user list that should get no access, regardless of implied access on share, separated by comma. | ||
description |
no | Share description | ||
full |
no | Specify user list that should get full access on share, separated by comma. | ||
list |
no |
|
Specify whether to allow or deny file listing, in case user got no permission on share | |
name |
yes | Share name | ||
path |
yes | Share directory | ||
read |
no | Specify user list that should get read access on share, separated by comma. | ||
state |
no | present |
|
Specify whether to add present or remove absent the specified share |
# Playbook example # Add share and set permissions --- - name: Add secret share win_share: name: internal description: top secret share path: C:\shares\internal list: 'no' full: Administrators,CEO read: HR-Global deny: HR-External - name: Add public company share win_share: name: company description: top secret share path: C:\shares\company list: 'yes' full: Administrators,CEO read: Global # Remove previously added share win_share: name: internal state: absent
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is maintained by those with core commit privileges
For more information on what this means please read Module Support
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.