# redfish_firmware To perform a component firmware update using the image file available on the local or remote system. ## 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 socket level timeout in seconds.
image_uri false str - Firmware Image location URI or local path.
- For example- U(http:///components.exe) or /home/firmware_repo/component.exe.
transfer_protocol false HTTP "CIFS", "FTP", "HTTP", "HTTPS", "NSF", "OEM", "SCP", "SFTP", "TFTP" str - Protocol used to transfer the firmware image file. Applicable for URI based update.
job_wait false true str - Provides the option to wait for job completion.
job_wait_timeout false 3600 str - 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).
## Fact variables
Name Sample Description
redfish_firmware_out { msg: Successfully submitted the firmware update task. task: { "id": "JID_XXXXXXXXXXXX", "uri": "/redfish/v1/TaskService/Tasks/JID_XXXXXXXXXXXX" } } Returns the output of the firmware update status.
## Examples --- ``` - name: Update the firmware from a single executable file available in HTTP protocol ansible.builtin.include_role: name: redfish_firmware: vars: hostname: "192.168.0.1" username: "username" password: "password" image_uri: "http://192.168.0.2/firmware_repo/component.exe" transfer_protocol: "HTTP" ``` ``` - name: Update the firmware from a single executable file available in a local path ansible.builtin.include_role: name: redfish_firmware: vars: hostname: "192.168.0.1" username: "username" password: "password" image_uri: "/home/firmware_repo/component.exe" ``` ``` - name: Update the firmware from a single executable file available in a HTTP protocol with job_wait_timeout ansible.builtin.include_role: name: redfish_firmware: vars: hostname: "192.168.0.1" username: "user_name" password: "user_password" ca_path: "/path/to/ca_cert.pem" image_uri: "http://192.168.0.2/firmware_repo/component.exe" transfer_protocol: "HTTP" job_wait_timeout: 600 ``` ## Author Information --- Dell Technologies
Shivam Sharma (Shivam.Sharma3@Dell.com) 2023