dellemc.unity.cifsserver module – Manage CIFS server on Unity storage system
Note
This module is part of the dellemc.unity collection (version 1.7.1).
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.cifsserver
.
New in dellemc.unity 1.4.0
Synopsis
Managing the CIFS server on the Unity storage system includes creating CIFS server, getting CIFS server details and deleting CIFS server.
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.13 or later.
Python 3.9, 3.10 or 3.11.
Storops Python SDK 1.2.11.
Parameters
Parameter |
Comments |
---|---|
The ID of the CIFS server. |
|
The name of the CIFS server. |
|
The domain name where the SMB server is registered in Active Directory. |
|
Active Directory domain password. |
|
Active Directory domain user name. |
|
List of file IP interfaces that service CIFS protocol of SMB server. |
|
Standalone SMB server administrator password. |
|
ID of the NAS server on which CIFS server will be hosted. |
|
Name of the NAS server on which CIFS server will be hosted. |
|
The computer name of the SMB server in Windows network. |
|
The password of the Unity management server. |
|
Port number through which communication happens with Unity management server. Default: |
|
Define whether the CIFS server should exist or not. Choices:
|
|
IP or FQDN of the Unity management server. |
|
Keep SMB server account unjoined in Active Directory after deletion.
Choices:
|
|
The username of the Unity management server. |
|
Boolean variable to specify whether or not to validate SSL certificate.
Choices:
|
|
Standalone SMB server workgroup. |
Notes
Note
The check_mode is supported.
The modules present in this collection named as ‘dellemc.unity’ are built to support the Dell Unity storage platform.
Examples
- name: Create CIFS server belonging to Active Directory
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "test_nas1"
cifs_server_name: "test_cifs"
domain: "ad_domain"
domain_username: "domain_username"
domain_password: "domain_password"
state: "present"
- name: Get CIFS server details using CIFS server ID
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
cifs_server_id: "cifs_37"
state: "present"
- name: Get CIFS server details using NAS server name
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
nas_server_name: "test_nas1"
state: "present"
- name: Delete CIFS server
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
cifs_server_id: "cifs_37"
unjoin_cifs_server_account: true
domain_username: "domain_username"
domain_password: "domain_password"
state: "absent"
- name: Create standalone CIFS server
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
netbios_name: "ANSIBLE_CIFS"
workgroup: "ansible"
local_password: "Password123!"
nas_server_name: "test_nas1"
state: "present"
- name: Get CIFS server details using netbios name
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
netbios_name: "ANSIBLE_CIFS"
state: "present"
- name: Delete standalone CIFS server
dellemc.unity.cifsserver:
unispherehost: "{{unispherehost}}"
username: "{{username}}"
password: "{{password}}"
validate_certs: "{{validate_certs}}"
cifs_server_id: "cifs_40"
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 CIFS server. Returned: When CIFS server exists Sample: |
|
Description of the SMB server. Returned: success |
|
Domain name where SMB server is registered in Active Directory. Returned: success |
|
The file interfaces associated with the NAS server. Returned: success |
|
List of file interfaces associated with the NAS server. Returned: success |
|
Details of file interface associated with the NAS server. Returned: success |
|
Unique identifier of the file interface. Returned: success |
|
Unique identifier of the CIFS server instance. Returned: success |
|
Indicates whether the SMB server is standalone. Returned: success |
|
User-specified name for the SMB server. Returned: success |
|
Information about the NAS server in the storage system. Returned: success |
|
Information about the NAS server in the storage system. Returned: success |
|
Unique identifier of the NAS server instance. Returned: success |
|
Computer Name of the SMB server in windows network. Returned: success |
|
Indicates whether the SMB 3.0+ multichannel feature is supported. Returned: success |
|
Supported SMB protocols, such as 1.0, 2.0, 2.1, 3.0, and so on. Returned: success |
|
Indicates whether the SMB server supports continuous availability. Returned: success |
|
Windows network workgroup for the SMB server. Returned: success |