Announcement Banner
UNSOLVED

devopsmonkey

updated

4 years ago

0

835

April 20th, 2022 08:00

redfish firmware update using proxy

Hello,

 

I am trying to update the idrac, bios, etc firmware using ansible/redfish, but I neet to use a proxy to access downloads.dell.com. I've managed to set the proxy using this playbook, but I cannot use the proxy when running the update playbook:

   - name: Enable proxy in iDRAC
     community.general.idrac_redfish_config:
       category: Manager
       command: SetLifecycleControllerAttributes
       manager_attributes:
         LCAttributes.1.UserProxyServer: "{{ proxy_ip }}"
         LCAttributes.1.UserProxyPort: "{{ proxy_port }}"
         LCAttributes.1.UserProxyType: 'HTTP'
         LCAttributes.1.IgnoreCertWarning: 'ON'
       baseuri: "{{ idrac_ip }}"
       username: "{{ idrac_username}}"
       password: "{{ idrac_password }}"

   - name: Update firmware from a repository on a HTTP share.
     dellemc.openmanage.idrac_firmware:
       idrac_ip:        "{{ idrac_ip }}"
       idrac_user:      "{{ idrac_username }}"
       idrac_password:  "{{ idrac_password }}"
       share_name: "http://downloads.dell.com"
       reboot: True
       job_wait: True
       apply_update: True
       validate_certs: false

Unfortunately the idrac_firmware task fails because it can't reach the Internet. If I do it by hand from the iDRAC webui I can enable the proxy and it works just fine. Any ideea how I could make use of the proxy while updating thru ansible or redfish?