# idrac_boot Role to configure the boot order settings ## Requirements ### Development Requirements to develop and contribute to the role ``` ansible docker molecule python ``` ### Production Requirements to use the role ``` ansible python ``` ### Ansible collections Collections required to use the role ``` dellemc.openmanage ``` ## Role Variables
| Name | Required | Default Value | Choices | Type | Description |
|---|---|---|---|---|---|
| hostname | true | str | - iDRAC IP Address | ||
| username | true | str | - iDRAC username | ||
| password | true | str | - iDRAC user password | ||
| https_port | false | 443 | int | - iDRAC port. | |
| validate_certs | false | true | bool | - If C(false), the SSL certificates will not be validated. - Configure C(false) only on personally controlled sites where self-signed certificates are used. |
|
| ca_path | false | path | - The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. | ||
| https_timeout | false | 30 | int | - The HTTPS socket level timeout in seconds. | |
| boot_options | false | list | - Options to enable or disable the boot devices. - This is mutually exclusive with I(boot_order), I(boot_source_override_mode), I(boot_source_override_enabled), I(boot_source_override_target), and I(uefi_target_boot_source_override). |
||
| boot_option_reference | false | str | - FQDD of the boot device. - This is mutually exclusive with I(display_name). |
||
| display_name | false | str | - Display name of the boot source device. - This is mutually exclusive with I(boot_option_reference). |
||
| enabled | true | bool | - Enable or disable the boot device. | ||
| boot_order | false | list | - This option allows to set the boot devices in the required boot order sequence. - This is mutually exclusive with I(boot_options). |
||
| boot_source_override_mode | false | 'legacy', 'uefi' | str | - The BIOS boot mode (either Legacy or UEFI) to be used when I(boot_source_override_target) boot source is booted. - C(legacy) The system boot in non-UEFI(Legacy) boot mode to the I(boot_source_override_target). - C(uefi) The system boot in UEFI boot mode to the I(boot_source_override_target). - This is read-only property for iDRAC 17G and later. - This is mutually exclusive with I(boot_options). |
|
| boot_source_override_enabled | false | 'continuous', 'disabled', 'once' | str | - The state of the Boot Source Override feature. - C(disabled), the system boots normally. - C(once), the system boots 1 time to the I(boot_source_override_target). - C(continuous), the system boots to the target specified in the I(boot_source_override_target) until this property is set to Disabled. - The state is set to C(once) for the 1 time boot override and C(continuous) for the remain-active-until—cancelled override. If the state is set C(once) or C(continuous), the value is reset to C(disabled) after the I(boot_source_override_target) actions have completed successfully. - Changes to these options do not alter the BIOS persistent boot order configuration. - This is mutually exclusive with I(boot_options). |
|
| boot_source_override_target | false | 'uefi_http', 'sd_card', 'uefi_target', 'utilities', 'bios_setup', 'hdd', 'cd', 'floppy', 'pxe', 'none' | str | - The boot source override targets the device to use during the next boot instead of the normal boot device. - C(pxe) performs PXE boot from the primary NIC. - C(floppy), C(cd), C(hdd), and C(sd_card) performs boot from their devices respectively. - C(bios_setup) performs boot into the native BIOS setup. - C(uefi_http) performs boot from a URI over HTTP. - C(utilities) performs boot from the local utilities. - C(uefi_target) performs boot from the UEFI device path found in I(uefi_target_boot_source_override). - C(none) if the I(boot_source_override_target) is set to a value other than C(none) then the I(boot_source_override_enabled) is automatically set to C(once) if I(boot_source_override_enabled) is not provided. - Changes to these options do not alter the BIOS persistent boot order configuration. - This is required if I(boot_source_override_enabled) is C(once) or C(continuous) for iDRAC 17G and later. - This is mutually exclusive with I(boot_options). |
|
| uefi_target_boot_source_override | false | str | - The UEFI device path of the device from which to boot when I(boot_source_override_target) is C(uefi_target). - If I(boot_source_override_target) is set to C(uefi_target), then I(boot_source_override_enabled) cannot be set to c(continuous) because this setting is defined in UEFI as a one-time-boot setting. - Changes to these options do not alter the BIOS persistent boot order configuration. - This is required if I(boot_source_override_target) is C(uefi_target). - This is mutually exclusive with I(boot_options). |
||
| reset_type | false | graceful_restart | 'graceful_restart', 'force_restart', 'none' | str | - C(none) Host system is not rebooted and I(job_wait) is not applicable. - C(force_restart) Forcefully reboot the Host system. - C(graceful_restart) Gracefully reboot the Host system. |
| job_wait | false | true | bool | - Provides the option to wait for job completion. - This is applicable when I(reset_type) is C(force_reset) or C(graceful_reset). |
|
| job_wait_timeout | false | 900 | int | - The maximum wait time of I(job_wait) in seconds. The job is tracked only for this duration. - This option is applicable when I(job_wait) is C(True). |
|
| resource_id | false | str | - Redfish ID of the resource. |
| Name | Sample | Description |
|---|---|---|
| idrac_boot_out | { "boot": { "BootOptions": { "Description": "Collection of BootOptions", "Members": [ { "BootOptionEnabled": true, "BootOptionReference": "Boot0005", "Description": "Current settings of the UEFI Boot option", "DisplayName": "Integrated RAID Controller 1: VMware ESXi", "Id": "Boot0005", "Name": "Uefi Boot Option", "UefiDevicePath": "HD(1,GPT,740C46A9-4A43-47AA-9C09-65E821376E48,0x40,0x32000)/\\EFI\\VMware\\safeboot64.efi" }, { "BootOptionEnabled": false, "BootOptionReference": "Boot0004", "Description": "Current settings of the UEFI Boot option", "DisplayName": "Unavailable: Windows Boot Manager", "Id": "Boot0004", "Name": "Uefi Boot Option", "UefiDevicePath": "HD(1,GPT,AEB2A96B-5C31-4F8F-9927-B48B08D907BE,0x800,0xF9800)/\\EFI\\Microsoft\\Boot\\bootmgfw.efi" }, { "BootOptionEnabled": true, "BootOptionReference": "Boot0006", "Description": "Current settings of the UEFI Boot option", "DisplayName": "Unavailable: Red Hat Enterprise Linux", "Id": "Boot0006", "Name": "Uefi Boot Option", "UefiDevicePath": "HD(1,GPT,14759088-1AE7-4EA4-A60B-BE82546E21B6,0x800,0x12C000)/\\EFI\\redhat\\shimx64.efi" }, { "BootOptionEnabled": true, "BootOptionReference": "Boot0003", "Description": "Current settings of the UEFI Boot option", "DisplayName": "Unavailable: Rocky Linux", "Id": "Boot0003", "Name": "Uefi Boot Option", "UefiDevicePath": "HD(1,GPT,ADC59C44-A0D3-4917-9376-33EE44DE96F0,0x800,0x12C000)/\\EFI\\rocky\\shimx64.efi" } ], "Name": "Boot Options Collection" }, "BootOrder": [ "Boot0005", "Boot0004", "Boot0006", "Boot0003" ], "BootSourceOverrideEnabled": "Disabled", "BootSourceOverrideMode": "UEFI", "BootSourceOverrideTarget": "None", "UefiTargetBootSourceOverride": null }, "job": { "ActualRunningStartTime": "2023-06-19T09:48:41", "ActualRunningStopTime": "2023-06-19T09:51:53", "CompletionTime": "2023-06-19T09:51:53", "Description": "Job Instance", "EndTime": "TIME_NA", "Id": "JID_871679370016", "JobState": "Completed", "JobType": "BIOSConfiguration", "Message": "Job completed successfully.", "MessageArgs": [], "MessageId": "PR19", "Name": "Configure: BIOS.Setup.1-1", "PercentComplete": 100, "StartTime": "2023-06-19T09:45:36", "TargetSettingsURI": null }, "msg": "Successfully updated the boot settings." } | Role output of the idrac_boot job. |