dellemc.openmanage.idrac_license module – Configure iDRAC licenses
Note
This module is part of the dellemc.openmanage collection (version 9.9.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.openmanage
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: dellemc.openmanage.idrac_license
.
New in dellemc.openmanage 8.7.0
Synopsis
This module allows to import, export and delete licenses on iDRAC.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9.6
Parameters
Parameter |
Comments |
---|---|
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
|
Delete the license from the iDRAC. When delete is delete is mutually exclusive with export and import. Choices:
|
|
Export the license from the iDRAC. When export is export is mutually exclusive with delete and import. Choices:
|
|
iDRAC IP Address. |
|
iDRAC user password. If the password is not provided, then the environment variable Example: export IDRAC_PASSWORD=password |
|
iDRAC port. Default: |
|
iDRAC username. If the username is not provided, then the environment variable Example: export IDRAC_USERNAME=username |
|
Import the license from the iDRAC. When import is import is mutually exclusive with delete and export. Choices:
|
|
Entitlement ID of the license that is to be imported, exported or deleted. license_id is required when delete is |
|
Id of the resource. If the value for resource ID is not provided, the module picks the first resource ID available from the list of system resources returned by the iDRAC. |
|
Parameters that are required for the import and export operation of a license. share_parameters is required when export or import is |
|
License file name for import and export operation. file_name is required when import is For the import operation, when share_type is |
|
Ignores the certificate warning while connecting to Share and is only applicable when share_type is
Choices:
|
|
IP address of the network share. ip_address is required when share_type is |
|
Password of the network share. password is required when share_type is |
|
The password of the proxy server. proxy_password is only applicable when share_type is |
|
The port of the proxy server. proxy_port is only applicable when share_type is Default: |
|
The IP address of the proxy server. proxy_server is required when proxy_support is proxy_server is only applicable when share_type is |
|
Specifies if proxy is to be used or not.
proxy_support is only applicable when share_type is Choices:
|
|
The proxy type of the proxy server.
proxy_type is only applicable when share_type is Choices:
|
|
The username of the proxy server. proxy_username is only applicable when share_type is |
|
Network share or local path of the license file. |
|
Share type of the network share.
Choices:
|
|
Username of the network share. username is required when share_type is |
|
Workgroup of the network share. workgroup is applicable only when share_type is |
|
The socket level timeout in seconds. Default: |
|
If Configure Prior to collection version Choices:
|
|
Authentication token. If the x_auth_token is not provided, then the environment variable Example: export IDRAC_X_AUTH_TOKEN=x_auth_token |
Notes
Note
Run this module from a system that has direct access to Dell iDRAC.
This module supports only iDRAC9 and above.
This module supports IPv4 and IPv6 addresses.
This module does not support
check_mode
.When share_type is
local
for import and export operations, job_details are not displayed.
Examples
---
- name: Export a license from iDRAC to local
dellemc.openmanage.idrac_license:
idrac_ip: "192.168.0.1"
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
license_id: "LICENSE_123"
export: true
share_parameters:
share_type: "local"
share_name: "/path/to/share"
file_name: "license_file"
- name: Export a license from iDRAC to NFS share
dellemc.openmanage.idrac_license:
idrac_ip: "192.168.0.1"
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
license_id: "LICENSE_123"
export: true
share_parameters:
share_type: "nfs"
share_name: "/path/to/share"
file_name: "license_file"
ip_address: "192.168.0.1"
- name: Export a license from iDRAC to CIFS share
dellemc.openmanage.idrac_license:
idrac_ip: "192.168.0.1"
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
license_id: "LICENSE_123"
export: true
share_parameters:
share_type: "cifs"
share_name: "/path/to/share"
file_name: "license_file"
ip_address: "192.168.0.1"
username: "username"
password: "password"
workgroup: "workgroup"
- name: Export a license from iDRAC to HTTP share via proxy
dellemc.openmanage.idrac_license:
idrac_ip: "192.168.0.1"
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
license_id: "LICENSE_123"
export: true
share_parameters:
share_type: "http"
share_name: "/path/to/share"
file_name: "license_file"
ip_address: "192.168.0.1"
username: "username"
password: "password"
proxy_support: "parameters_proxy"
proxy_type: socks
proxy_server: "192.168.0.2"
proxy_port: 1080
proxy_username: "proxy_username"
proxy_password: "proxy_password"
- name: Export a license from iDRAC to HTTPS share
dellemc.openmanage.idrac_license:
idrac_ip: "192.168.0.1"
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
license_id: "LICENSE_123"
export: true
share_parameters:
share_type: "https"
share_name: "/path/to/share"
file_name: "license_file"
ip_address: "192.168.0.1"
username: "username"
password: "password"
ignore_certificate_warning: "on"
- name: Import a license to iDRAC from local
dellemc.openmanage.idrac_license:
idrac_ip: 198.162.0.1
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
import: true
share_parameters:
file_name: "license_file_name.xml"
share_type: local
share_name: "/path/to/share"
- name: Import a license to iDRAC from NFS share
dellemc.openmanage.idrac_license:
idrac_ip: 198.162.0.1
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
import: true
share_parameters:
file_name: "license_file_name.xml"
share_type: nfs
ip_address: "192.168.0.1"
share_name: "/path/to/share"
- name: Import a license to iDRAC from CIFS share
dellemc.openmanage.idrac_license:
idrac_ip: 198.162.0.1
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
import: true
share_parameters:
file_name: "license_file_name.xml"
share_type: cifs
ip_address: "192.168.0.1"
share_name: "/path/to/share"
username: "username"
password: "password"
- name: Import a license to iDRAC from HTTP share
dellemc.openmanage.idrac_license:
idrac_ip: 198.162.0.1
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
import: true
share_parameters:
file_name: "license_file_name.xml"
share_type: http
ip_address: "192.168.0.1"
share_name: "/path/to/share"
username: "username"
password: "password"
- name: Import a license to iDRAC from HTTPS share via proxy
dellemc.openmanage.idrac_license:
idrac_ip: 198.162.0.1
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
import: true
share_parameters:
file_name: "license_file_name.xml"
share_type: https
ip_address: "192.168.0.1"
share_name: "/path/to/share"
username: "username"
password: "password"
proxy_support: "parameters_proxy"
proxy_server: "192.168.0.2"
proxy_port: 808
proxy_username: "proxy_username"
proxy_password: "proxy_password"
- name: Delete a License from iDRAC
dellemc.openmanage.idrac_license:
idrac_ip: 198.162.0.1
idrac_user: "username"
idrac_password: "password"
ca_path: "/path/to/ca_cert.pem"
license_id: "LICENCE_123"
delete: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Details of the HTTP Error. Returned: on HTTP error Sample: |
|
Returns the output for status of the job. Returned: For import and export operations Sample: |
|
Status of the license operation. Returned: always Sample: |