| 1 | --- |
| 2 | argument_specs: |
| 3 | main: |
| 4 | version_added: "7.6.0" |
| 5 | short_description: Modify and clear BIOS attributes, and reset BIOS settings |
| 6 | description: |
| 7 | - This role allows to modify BIOS attributes, clear pending BIOS attributes, and reset the BIOS to default settings. |
| 8 | options: |
| 9 | hostname: |
| 10 | required: true |
| 11 | type: str |
| 12 | description: |
| 13 | - iDRAC IP Address. |
| 14 | username: |
| 15 | type: str |
| 16 | description: |
| 17 | - iDRAC username. |
| 18 | password: |
| 19 | type: str |
| 20 | description: |
| 21 | - iDRAC user password. |
| 22 | https_port: |
| 23 | type: int |
| 24 | description: |
| 25 | - iDRAC port. |
| 26 | default: 443 |
| 27 | validate_certs: |
| 28 | description: |
| 29 | - If C(false), the SSL certificates will not be validated. |
| 30 | - Configure C(false) only on personally controlled sites where self-signed certificates are used. |
| 31 | type: bool |
| 32 | default: true |
| 33 | ca_path: |
| 34 | description: |
| 35 | - The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation. |
| 36 | type: path |
| 37 | https_timeout: |
| 38 | description: |
| 39 | - The socket level timeout in seconds. |
| 40 | type: int |
| 41 | default: 30 |
| 42 | attributes: |
| 43 | type: dict |
| 44 | description: |
| 45 | - Dictionary of BIOS attributes and value pair. |
| 46 | Attributes should be part of the Redfish Dell BIOS Attribute Registry. |
| 47 | Use idrac_gather_facts role to fetch the BIOS attributes. |
| 48 | - This is mutually exclusive with I(reset_bios). |
| 49 | apply_time: |
| 50 | description: |
| 51 | - Apply time of the I(attributes). |
| 52 | - This is applicable only to I(attributes). |
| 53 | - C(Immediate) Allows the user to immediately reboot the host and apply the changes. I(job_wait) is applicable. |
| 54 | - C(OnReset) Allows the user to apply the changes on the next reboot of the host server. |
| 55 | - C(AtMaintenanceWindowStart) Allows the user to apply the changes at the start of a maintenance window as specified in |
| 56 | I(maintenance_window). A reboot job will be scheduled. |
| 57 | - C(InMaintenanceWindowOnReset) Allows to apply the changes after a manual reset but within the maintenance window as specified in |
| 58 | I(maintenance_window). |
| 59 | choices: |
| 60 | [ |
| 61 | Immediate, |
| 62 | OnReset, |
| 63 | AtMaintenanceWindowStart, |
| 64 | InMaintenanceWindowOnReset, |
| 65 | ] |
| 66 | default: Immediate |
| 67 | maintenance_window: |
| 68 | type: dict |
| 69 | description: |
| 70 | - Option to schedule the maintenance window. |
| 71 | - This is required when I(apply_time) is C(AtMaintenanceWindowStart) or C(InMaintenanceWindowOnReset). |
| 72 | options: |
| 73 | start_time: |
| 74 | type: str |
| 75 | description: |
| 76 | - The start time for the maintenance window to be scheduled. |
| 77 | - "The format is YYYY-MM-DDThh:mm:ss<offset>" |
| 78 | - "<offset> is the time offset from UTC that the current time zone set in iDRAC in the format: +05:30 for IST." |
| 79 | required: true |
| 80 | duration: |
| 81 | type: int |
| 82 | description: |
| 83 | - The duration in seconds for the maintenance window. |
| 84 | required: true |
| 85 | clear_pending: |
| 86 | type: bool |
| 87 | description: |
| 88 | - Allows the user to clear all pending BIOS attributes changes. |
| 89 | - C(true) discards any pending changes to BIOS attributes or removes the job if in scheduled state. |
| 90 | - This operation will not create any job. |
| 91 | - C(false) does not perform any operation. |
| 92 | - This is mutually exclusive with I(boot_sources), I(attributes), and I(reset_bios). |
| 93 | - C(Note) Any BIOS job scheduled will not be cleared because of boot sources configuration. |
| 94 | reset_bios: |
| 95 | type: bool |
| 96 | description: |
| 97 | - Resets the BIOS to default settings and triggers a reboot of host system. |
| 98 | - This is applied to the host after the restart. |
| 99 | - This operation will not create any job. |
| 100 | - C(false) does not perform any operation. |
| 101 | - This is mutually exclusive with I(boot_sources), I(attributes), and I(clear_pending). |
| 102 | - When C(true), this action will always report as changes found to be applicable. |
| 103 | reset_type: |
| 104 | type: str |
| 105 | description: |
| 106 | - C(force_restart) Forcefully reboot the host system. |
| 107 | - C(graceful_restart) Gracefully reboot the host system. |
| 108 | - This is applicable for I(reset_bios), and I(attributes) when I(apply_time) is C(Immediate). |
| 109 | choices: [graceful_restart, force_restart] |
| 110 | default: graceful_restart |
| 111 | job_wait: |
| 112 | type: bool |
| 113 | description: |
| 114 | - Provides the option to wait for job completion. |
| 115 | - This is applicable for I(attributes) when I(apply_time) is C(Immediate). |
| 116 | default: true |
| 117 | job_wait_timeout: |
| 118 | type: int |
| 119 | description: |
| 120 | - The maximum wait time of I(job_wait) in seconds. The job is tracked only for this duration. |
| 121 | - This option is applicable when I(job_wait) is C(true). |
| 122 | default: 1200 |