Skip to content

Commit

Permalink
fix(ansible): download bfb from nvidia to local machine
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored May 23, 2024
1 parent 2a214ec commit a6ad567
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lab/ansible/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,20 @@
- name: Nvidia BlueField installation-update
hosts: dh2
become: yes
vars:
bmc_fw_update_image_file: /root/bf-bundle-2.7.0-33_24.04_ubuntu-22.04_prod.bfb
bmc_fw_update_image_url: https://content.mellanox.com/BlueField/BFBs/Ubuntu22.04/{{ bmc_fw_update_image_file | basename }}
tasks:
- name: Check lspci
ansible.builtin.shell: lspci | grep BlueField
- name: Check RSHIM
ansible.builtin.shell: cat /dev/rshim0/misc

- name: Check if firmware image exists locally {{ bmc_fw_update_image_file }}
ansible.builtin.stat: path={{ bmc_fw_update_image_file }}
register: bfb_local_file_check

- name: Download firmware image {{ bmc_fw_update_image_url }}
ansible.builtin.get_url: url={{ bmc_fw_update_image_url }} dest={{ bmc_fw_update_image_file }} mode='0440'
when: not bfb_local_file_check.stat.exists

0 comments on commit a6ad567

Please sign in to comment.