dellemc.openmanage.idrac_bios – Configure the BIOS attributes
Note
This plugin is part of the dellemc.openmanage collection (version 3.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.openmanage
.
To use it in a playbook, specify: dellemc.openmanage.idrac_bios
.
New in version 2.1.0: of dellemc.openmanage
Synopsis
- This module allows to configure the BIOS attributes.
Requirements
The below requirements are needed on the host that executes this module.
- omsdk
- python >= 2.7.5
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
attributes dictionary | Dictionary of BIOS attributes and value pair. Attributes should be part of the Redfish Dell BIOS Attribute Registry. Use https://idrac_ip/redfish/v1/Systems/System.Embedded.1/Bios to view the Redfish URI. If deprecated options are provided and the same is repeated in attributes then values in attributes will take precedence.
attributes is mutually exclusive with boot_sources. | |
boot_mode string |
| (deprecated)Sets boot mode to BIOS or UEFI. This option is deprecated, and will be removed in later version. Use attributes for configuring the BIOS attributes.
boot_mode is mutually exclusive with boot_sources. |
boot_sequence string | (deprecated)Allows to set the boot sequence in BIOS boot mode or Secure UEFI boot mode by rearranging the boot entries in Fully Qualified Device Descriptor (FQDD). TThis option is deprecated, and will be removed in later version. Use attributes for configuring the BIOS attributes.
boot_sequence is mutually exclusive with boot_sources. | |
boot_sources list / elements=raw | List of boot devices to set the boot sources settings.
boot_sources is mutually exclusive with attributes, boot_sequence, onetime_boot_mode, secure_boot_mode, nvme_mode, boot_mode. | |
idrac_ip string / required | iDRAC IP Address. | |
idrac_password string / required | iDRAC user password. aliases: idrac_pwd | |
idrac_port integer | Default: 443 | iDRAC port. |
idrac_user string / required | iDRAC username. | |
nvme_mode string |
| (deprecated)Configures the NVME mode in the iDRAC 9 based PowerEdge Servers. This option is deprecated, and will be removed in later version. Use attributes for configuring the BIOS attributes.
nvme_mode is mutually exclusive with boot_sources. |
onetime_boot_mode string |
| (deprecated)Configures the one time boot mode setting. This option is deprecated, and will be removed in later version. Use attributes for configuring the BIOS attributes.
onetime_boot_mode is mutually exclusive with boot_sources. |
secure_boot_mode string |
| (deprecated)Configures how the BIOS uses the Secure Boot Policy Objects in iDRAC 9 based PowerEdge Servers. This option is deprecated, and will be removed in later version. Use attributes for configuring the BIOS attributes.
secure_boot_mode is mutually exclusive with boot_sources. |
share_mnt string | Local mount path of the network share with read-write permission for ansible user. This option is mandatory for network shares. | |
share_name string | Network share or a local path. | |
share_password string | Network share user password. This option is mandatory for CIFS share. aliases: share_pwd | |
share_user string | Network share user name. Use the format 'user@domain' or 'domain\user' if user is part of a domain. This option is mandatory for CIFS share. |
Notes
Note
- This module requires ‘Administrator’ privilege for idrac_user.
- Run this module from a system that has direct access to DellEMC iDRAC.
- This module supports
check_mode
.
Examples
--- - name: Configure generic attributes of the BIOS dellemc.openmanage.idrac_bios: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" attributes: BootMode : "Bios" OneTimeBootMode: "Enabled" BootSeqRetry: "Enabled" - name: Configure PXE generic attributes dellemc.openmanage.idrac_bios: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" attributes: PxeDev1EnDis: "Enabled" PxeDev1Protocol: "IPV4" PxeDev1VlanEnDis: "Enabled" PxeDev1VlanId: 1 PxeDev1Interface: "NIC.Embedded.1-1-1" PxeDev1VlanPriority: 2 - name: Configure boot sources dellemc.openmanage.idrac_bios: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" boot_sources: - Name : "NIC.Integrated.1-2-3" Enabled : true Index : 0 - name: Configure multiple boot sources dellemc.openmanage.idrac_bios: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" boot_sources: - Name : "NIC.Integrated.1-1-1" Enabled : true Index : 0 - Name : "NIC.Integrated.2-2-2" Enabled : true Index : 1 - Name : "NIC.Integrated.3-3-3" Enabled : true Index : 2 - name: Configure boot sources - Enabling dellemc.openmanage.idrac_bios: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" boot_sources: - Name : "NIC.Integrated.1-1-1" Enabled : true - name: Configure boot sources - Index dellemc.openmanage.idrac_bios: idrac_ip: "192.168.0.1" idrac_user: "user_name" idrac_password: "user_password" boot_sources: - Name : "NIC.Integrated.1-1-1" Index : 0
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
error_info dictionary | on HTTP error | Details of the HTTP Error. Sample: {'error': {'@Message.ExtendedInfo': [{'Message': 'Unable to process the request because an error occurred.', 'MessageArgs': [], 'MessageId': 'GEN1234', 'RelatedProperties': [], 'Resolution': 'Retry the operation. If the issue persists, contact your system administrator.', 'Severity': 'Critical'}], 'code': 'Base.1.0.GeneralError', 'message': 'A general error has occurred. See ExtendedInfo for more information.'}} |
msg dictionary | success | Configures the BIOS configuration attributes. Sample: {'@odata.context': '/redfish/v1/$metadata#DellJob.DellJob', '@odata.id': '/redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_873888162305', '@odata.type': '#DellJob.v1_0_0.DellJob', 'CompletionTime': '2020-04-20T18:50:20', 'Description': 'Job Instance', 'EndTime': None, 'Id': 'JID_873888162305', 'JobState': 'Completed', 'JobType': 'ImportConfiguration', 'Message': 'Successfully imported and applied Server Configuration Profile.', 'MessageArgs': [], 'MessageId': 'SYS053', 'Name': 'Import Configuration', 'PercentComplete': 100, 'StartTime': 'TIME_NOW', 'Status': 'Success', 'TargetSettingsURI': None, 'retval': True} |
Authors
- Felix Stephen (@felixs88)
- Anooja Vardhineni (@anooja-vardhineni)
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/dellemc/openmanage/idrac_bios_module.html