Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.udm_share
.
The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
directorymode string | Default: "00755" | Permissions for the share's root directory. |
group string | Default: "0" | Directory owner group of the share's root directory. |
host string | Host FQDN (server which provides the share), e.g. {{ ansible_fqdn }} . Required if state=present . | |
name string / required | Name | |
nfs_custom_settings string | Default: [] | Option name in exports file. aliases: nfsCustomSettings |
nfs_hosts string | Default: [] | Only allow access for this host, IP address or network. |
ou string / required | Organisational unit, inside the LDAP Base DN. | |
owner string | Default: 0 | Directory owner of the share's root directory. |
path string | Directory on the providing server, e.g. /home . Required if state=present . | |
root_squash string |
| Modify user ID for root user (root squashing). |
samba_block_size string | Blocking size. aliases: sambaBlockSize | |
samba_blocking_locks string |
| Blocking locks. aliases: sambaBlockingLocks |
samba_browseable string |
| Show in Windows network environment. aliases: sambaBrowseable |
samba_create_mode string | Default: "0744" | File mode. aliases: sambaCreateMode |
samba_csc_policy string | Default: "manual" | Client-side caching policy. aliases: sambaCscPolicy |
samba_custom_settings string | Default: [] | Option name in smb.conf and its value. aliases: sambaCustomSettings |
samba_directory_mode string | Default: "0755" | Directory mode. aliases: sambaDirectoryMode |
samba_directory_security_mode string | Default: "0777" | Directory security mode. aliases: sambaDirectorySecurityMode |
samba_dos_filemode string |
| Users with write access may modify permissions. aliases: sambaDosFilemode |
samba_fake_oplocks string |
| Fake oplocks. aliases: sambaFakeOplocks |
samba_force_create_mode string |
| Force file mode. aliases: sambaForceCreateMode |
samba_force_directory_mode string |
| Force directory mode. aliases: sambaForceDirectoryMode |
samba_force_directory_security_mode string |
| Force directory security mode. aliases: sambaForceDirectorySecurityMode |
samba_force_group string | Force group. aliases: sambaForceGroup | |
samba_force_security_mode string |
| Force security mode. aliases: sambaForceSecurityMode |
samba_force_user string | Force user. aliases: sambaForceUser | |
samba_hide_files string | Hide files. aliases: sambaHideFiles | |
samba_hide_unreadable string |
| Hide unreadable files/directories. aliases: sambaHideUnreadable |
samba_hosts_allow string | Default: [] | Allowed host/network. aliases: sambaHostsAllow |
samba_hosts_deny string | Default: [] | Denied host/network. aliases: sambaHostsDeny |
samba_inherit_acls string |
| Inherit ACLs. aliases: sambaInheritAcls |
samba_inherit_owner string |
| Create files/directories with the owner of the parent directory. aliases: sambaInheritOwner |
samba_inherit_permissions string |
| Create files/directories with permissions of the parent directory. aliases: sambaInheritPermissions |
samba_invalid_users string | Invalid users or groups. aliases: sambaInvalidUsers | |
samba_level_2_oplocks string |
| Level 2 oplocks. aliases: sambaLevel2Oplocks |
samba_locking string |
| Locking. aliases: sambaLocking |
samba_msdfs_root string |
| MSDFS root. aliases: sambaMSDFSRoot |
samba_name string | Windows name. Required if state=present .aliases: sambaName | |
samba_nt_acl_support string |
| NT ACL support. aliases: sambaNtAclSupport |
samba_oplocks string |
| Oplocks. aliases: sambaOplocks |
samba_postexec string | Postexec script. aliases: sambaPostexec | |
samba_preexec string | Preexec script. aliases: sambaPreexec | |
samba_public string |
| Allow anonymous read-only access with a guest user. aliases: sambaPublic |
samba_security_mode string | Default: "0777" | Security mode. aliases: sambaSecurityMode |
samba_strict_locking string | Default: "Auto" | Strict locking. aliases: sambaStrictLocking |
samba_valid_users string | Valid users or groups. aliases: sambaValidUsers | |
samba_vfs_objects string | VFS objects. aliases: sambaVFSObjects | |
samba_write_list string | Restrict write access to these users/groups. aliases: sambaWriteList | |
samba_writeable string |
| Samba write access. aliases: sambaWriteable |
state string |
| Whether the share is present or not. |
subtree_checking string |
| Subtree checking. |
sync string | Default: "sync" | NFS synchronisation. |
writeable string |
| NFS write access. |
- name: Create a share named home on the server ucs.example.com with the path /home community.general.udm_share: name: home path: /home host: ucs.example.com sambaName: Home
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/udm_share_module.html