dellemc.unity.nfsserver module – Manage NFS server on Unity storage system
Note
This module is part of the dellemc.unity collection (version 1.6.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.unity
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.unity.nfsserver
.
New in dellemc.unity 1.4.0
Synopsis
Managing the NFS server on the Unity storage system includes creating NFS server, getting NFS server details and deleting NFS server attributes.
Requirements
The below requirements are needed on the host that executes this module.
A Dell Unity Storage device version 5.1 or later.
Ansible-core 2.12 or later.
Python 3.9, 3.10 or 3.11.
Storops Python SDK 1.2.11.
Parameters
Parameter |
Comments |
---|---|
Host name of the NFS server. |
|
Indicates whether support for more than 16 unix groups in a Unix credential. Choices:
|
|
Indicates whether the secure NFS is enabled. Choices:
|
|
Kerberos Domain Controller administrator password. |
|
Type of Kerberos Domain Controller used for secure NFS service. Choices:
|
|
Kerberos Domain Controller administrator username. |
|
ID of the NAS server on which NFS server will be hosted. |
|
Name of the NAS server on which NFS server will be hosted. |
|
ID of the NFS server. |
|
Indicates whether the NFSv4 is enabled on the NAS server. Choices:
|
|
The password of the Unity management server. |
|
Port number through which communication happens with Unity management server. Default: |
|
Indicates whether to remove the SPN from Kerberos Domain Controller. Choices:
|
|
Define whether the NFS server should exist or not. Choices:
|
|
IP or FQDN of the Unity management server. |
|
The username of the Unity management server. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
Notes
Note
The check_mode is supported.
Modify operation for NFS Server is not supported.
When kerberos_domain_controller_type is
UNIX
, kdc_type in nfs_server_details output is displayed asnull
.The modules present in this collection named as ‘dellemc.unity’ are built to support the Dell Unity storage platform.
Examples
- name: Create NFS server with kdctype as Windows
dellemc.unity.nfsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
host_name: "dummy_nas23"
is_secure_enabled: True
kerberos_domain_controller_type: "WINDOWS"
kerberos_domain_controller_username: "administrator"
kerberos_domain_controller_password: "Password123!"
is_extended_credentials_enabled: True
nfs_v4_enabled: True
state: "present"
- name: Create NFS server with kdctype as Unix
dellemc.unity.nfsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
host_name: "dummy_nas23"
is_secure_enabled: True
kerberos_domain_controller_type: "UNIX"
is_extended_credentials_enabled: True
nfs_v4_enabled: True
state: "present"
- name: Get NFS server details
dellemc.unity.nfsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
state: "present"
- name: Delete NFS server
dellemc.unity.nfsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "dummy_nas"
kerberos_domain_controller_username: "administrator"
kerberos_domain_controller_password: "Password123!"
unjoin_server_account: False
state: "absent"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether or not the resource has changed. Returned: always Sample: |
|
Details of the NFS server. Returned: When NFS server exists Sample: |
|
Credential cache refresh timeout. Resolution is in minutes. Default value is 15 minutes. Returned: success |
|
Indicates if NFS Server exists. Returned: success |
|
Host name of the NFS server. Returned: success |
|
Unique identifier of the NFS Server instance. Returned: success |
|
Indicates whether the NFS server supports more than 16 Unix groups in a Unix credential. Returned: success |
|
Indicates whether secure NFS is enabled on the NFS server. Returned: success |
|
Type of Kerberos Domain Controller used for secure NFS service. Returned: success |
|
Indicates whether NFSv4 is enabled on the NAS server. Returned: success |
|
The Service Principal Name (SPN) for the NFS Server. Returned: success |