update_firmware.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. - name: Update firmware (This task will take time based on current firmware version)
  16. dellemc.openmanage.idrac_firmware:
  17. idrac_ip: "{{ inventory_hostname }}"
  18. idrac_user: "{{ idrac_username }}"
  19. idrac_password: "{{ idrac_password }}"
  20. share_name: "{{ management_station_ip }}:{{ nfs_share_offline_repo }}/dellupdates"
  21. reboot: True
  22. job_wait: True
  23. apply_update: True
  24. catalog_file_name: "Catalog.xml"
  25. register: update_firmware
  26. - name: Wait for one minute to complete firmware update
  27. wait_for:
  28. timeout: 60
  29. run_once: true
  30. - name: Wait for iDRAC port to become active
  31. wait_for:
  32. host: "{{ inventory_hostname }}"
  33. port: "{{ idrac_port }}"
  34. state: started