dellemc.openmanage.idrac_boot module – Configure the boot order settings.
Note
This module is part of the dellemc.openmanage collection (version 9.8.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_boot
.
New in dellemc.openmanage 6.1.0
Synopsis
This module allows to configure the boot order settings.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.9.6
Parameters
Parameter |
Comments |
---|---|
Options to enable or disable the boot devices. This is mutually exclusive with boot_order, boot_source_override_mode, boot_source_override_enabled boot_source_override_target, and uefi_target_boot_source_override. |
|
FQDD of the boot device. This is mutually exclusive with display_name. |
|
Display name of the boot source device. This is mutually exclusive with boot_option_reference. |
|
Enable or disable the boot device. Choices:
|
|
This option allows to set the boot devices in the required boot order sequences. This is mutually exclusive with boot_options. |
|
The state of the Boot Source Override feature.
The state is set to Changes to this options do not alter the BIOS persistent boot order configuration. This is mutually exclusive with boot_options. Choices:
|
|
The BIOS boot mode (either Legacy or UEFI) to be used when boot_source_override_target boot source is booted from.
This is mutually exclusive with boot_options. Choices:
|
|
The boot source override target device to use during the next boot instead of the normal boot device.
If the boot_source_override_target is set to a value other than Changes to this options do not alter the BIOS persistent boot order configuration. This is mutually exclusive with boot_options. Choices:
|
|
The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
|
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 |
|
Provides the option to wait for job completion. This is applicable when reset_type is Choices:
|
|
The maximum wait time of job_wait in seconds. The job is tracked only for this duration. This option is applicable when job_wait is Default: |
|
Choices:
|
|
Redfish ID of the resource. |
|
The socket level timeout in seconds. Default: |
|
The UEFI device path of the device from which to boot when boot_source_override_target is boot_source_override_enabled cannot be set to c(continuous) if boot_source_override_target set to Changes to this options do not alter the BIOS persistent boot order configuration. This is required if boot_source_override_target is This is mutually exclusive with boot_options. |
|
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
check_mode
.
Examples
---
- name: Configure the system boot options settings.
dellemc.openmanage.idrac_boot:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
boot_options:
- display_name: Hard drive C
enabled: true
- boot_option_reference: NIC.PxeDevice.2-1
enabled: true
- name: Configure the boot order settings.
dellemc.openmanage.idrac_boot:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
boot_order:
- Boot0001
- Boot0002
- Boot0004
- Boot0003
- name: Configure the boot source override mode.
dellemc.openmanage.idrac_boot:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
boot_source_override_mode: legacy
boot_source_override_target: cd
boot_source_override_enabled: once
- name: Configure the UEFI target settings.
dellemc.openmanage.idrac_boot:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
boot_source_override_mode: uefi
boot_source_override_target: uefi_target
uefi_target_boot_source_override: "VenHw(3A191845-5F86-4E78-8FCE-C4CFF59F9DAA)"
- name: Configure the boot source override mode as pxe.
dellemc.openmanage.idrac_boot:
idrac_ip: "192.168.0.1"
idrac_user: "user_name"
idrac_password: "user_password"
ca_path: "/path/to/ca_cert.pem"
boot_source_override_mode: legacy
boot_source_override_target: pxe
boot_source_override_enabled: continuous
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Configured boot settings details. Returned: success Sample: |
|
Details of the HTTP Error. Returned: on HTTP error Sample: |
|
Configured job details. Returned: success Sample: |
|
Successfully updated the boot settings. Returned: success Sample: |