dellemc.openmanage.idrac_virtual_media module – Configure the Remote File Share settings.
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_virtual_media
.
New in dellemc.openmanage 6.3.0
Synopsis
This module allows to configure Remote File Share settings.
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. |
|
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 |
|
Resource id of the iDRAC, if not specified manager collection id will be used. |
|
The socket level timeout in seconds. Default: |
|
If Configure Prior to collection version Choices:
|
|
Details of the Remote File Share. |
|
Domain name of network share. This option is applicable for CIFS and HTTPS share. |
|
The path of the image file. The supported file types are .img and .iso. The file name with .img extension is redirected as a virtual floppy and a file name with .iso extension is redirected as a virtual CDROM. This option is required when insert is The following are the examples of the share location: CIFS share: //192.168.0.1/file_path/image_name.iso, NFS share: 192.168.0.2:/file_path/image_name.img, HTTP share: http://192.168.0.3/file_path/image_name.iso, HTTPS share: https://192.168.0.4/file_path/image_name.img CIFS share is not supported by iDRAC8. HTTPS share with credentials is not supported by iDRAC8. |
|
Index of the Remote File Share. For example, to specify the Remote File Share 1, the value of index should be 1. If index is not specified, the order of virtual_media list will be considered. |
|
Choices:
|
|
Type of the image file. This is applicable when insert is Choices:
|
|
Network share password. This option is applicable for CIFS and HTTPS share. This module always reports as the changes found when password is provided. |
|
Network share username. This option is applicable for CIFS and HTTPS share. |
|
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
check_mode
.
Examples
---
- name: Insert image file to Remote File Share 1 using CIFS share.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
virtual_media:
- insert: true
image: "//192.168.0.2/file_path/file.iso"
username: "username"
password: "password"
- name: Insert image file to Remote File Share 2 using NFS share.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
virtual_media:
- index: 2
insert: true
image: "192.168.0.4:/file_path/file.iso"
- name: Insert image file to Remote File Share 1 and 2 using HTTP.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: true
image: "http://192.168.0.4/file_path/file.img"
- index: 2
insert: true
image: "http://192.168.0.4/file_path/file.img"
- name: Insert image file using HTTPS.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: true
image: "https://192.168.0.5/file_path/file.img"
username: username
password: password
- name: Eject multiple virtual media.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: false
- index: 2
insert: false
- name: Ejection of image file from Remote File Share 1.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
insert: false
- name: Insertion and ejection of image file in single task.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: true
image: https://192.168.0.5/file/file.iso
username: username
password: password
- index: 2
insert: false
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: |
|
Successfully performed the virtual media operation. Returned: success Sample: |
Authors
Felix Stephen (@felixs88)