dellemc.openmanage.ome_chassis_slots module – Rename sled slots on OpenManage Enterprise Modular
Note
This module is part of the dellemc.openmanage collection (version 8.7.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.ome_chassis_slots
.
New in dellemc.openmanage 3.6.0
Synopsis
This module allows to rename sled slots on OpenManage Enterprise Modular either using device id or device service tag or using chassis service tag and slot number.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.8.6
Parameters
Parameter |
Comments |
---|---|
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
|
The ID or service tag of the sled in the slot and the new name for the slot. device_options is mutually exclusive with slot_options. |
|
Device ID of the sled in the slot. This is mutually exclusive with device_service_tag. |
|
Service tag of the sled in the slot. This is mutually exclusive with device_id. |
|
Provide name for the slot. |
|
OpenManage Enterprise Modular IP address or hostname. |
|
OpenManage Enterprise Modular password. If the password is not provided, then the environment variable Example: export OME_PASSWORD=password |
|
OpenManage Enterprise Modular HTTPS port. Default: |
|
The service tag of the chassis, slot number of the slot to be renamed, and the new name for the slot. slot_options is mutually exclusive with device_options. |
|
Service tag of the chassis. |
|
The slot number and the new name for the slot. |
|
Provide name for the slot. |
|
The slot number of the slot to be renamed. |
|
The socket level timeout in seconds. Default: |
|
OpenManage Enterprise Modular username. If the username is not provided, then the environment variable Example: export OME_USERNAME=username |
|
If Configure Prior to collection version Choices:
|
Notes
Note
This module initiates the refresh inventory task. It may take a minute for new names to be reflected. If the task exceeds 300 seconds to refresh, the task times out.
Run this module from a system that has direct access to Dell OpenManage Enterprise Modular.
This module supports
check_mode
.
Examples
---
- name: Rename the slots in multiple chassis using slot number and chassis service tag
dellemc.openmanage.ome_chassis_slots:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
slot_options:
- chassis_service_tag: ABC1234
slots:
- slot_number: 1
slot_name: sled_name_1
- slot_number: 2
slot_name: sled_name_2
- chassis_service_tag: ABC1235
slots:
- slot_number: 1
slot_name: sled_name_1
- slot_number: 2
slot_name: sled_name_2
- name: Rename single slot name of the sled using sled ID
dellemc.openmanage.ome_chassis_slots:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
device_options:
- device_id: 10054
slot_name: slot_device_name_1
- name: Rename single slot name of the sled using sled service tag
dellemc.openmanage.ome_chassis_slots:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
device_options:
- device_service_tag: ABC1234
slot_name: service_tag_slot
- name: Rename multiple slot names of the devices
dellemc.openmanage.ome_chassis_slots:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
device_options:
- device_id: 10054
slot_name: sled_name_1
- device_service_tag: ABC1234
slot_name: sled_name_2
- device_id: 10055
slot_name: sled_name_3
- device_service_tag: PQR1234
slot_name: sled_name_4
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: |
|
Overall status of the slot rename operation. Returned: always Sample: |
|
Information of the valid slots that are not renamed.
Returned: if at least one slot renaming fails Sample: |
|
Information of the slots that are renamed successfully. The
Returned: if at least one slot renamed Sample: |