Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

3 years ago
# update firmware :
# Usage: $ ansible-playbook firmware.yml
---
- name: update firmware
3 years ago
hosts: dh-node02
3 years ago
tasks:
- name: Create directory
file:
path: /root/r630-25-11
state: directory
- name: copy BIOS firmware
3 years ago
copy:
src: files/BIOS_1RKPD_LN_2.10.5.BIN
mode: 0744
dest: /root/r630-25-11/BIOS_1RKPD_LN_2.10.5.BIN
- name: copy Intel Network Firmware
copy:
src: files/Network_Firmware_GK57C_LN_19.0.12_A00.BIN
mode: 0744
dest: /root/r630-25-11/
3 years ago
- name: copy iDRAC firmware
3 years ago
copy:
src: files/iDRAC-with-Lifecycle-Controller_Firmware_40T1C_LN_2.63.60.61_A00.BIN
mode: 0744
dest: /root/r630-25-11/iDRAC-with-Lifecycle-Controller_Firmware_40T1C_LN_2.63.60.61_A00.BIN
- name: install BIOS firmware
3 years ago
shell: /root/r630-25-11/BIOS_1RKPD_LN_2.10.5.BIN -q
3 years ago
register: result
failed_when: 'result.rc >3 '
- name: install Network firmware
shell: /root/r630-25-11/Network_Firmware_GK57C_LN_19.0.12_A00.BIN -q
register: result
failed_when: 'result.rc >3 '
3 years ago
- name: install iDRAC firmware
3 years ago
shell: /root/r630-25-11/iDRAC-with-Lifecycle-Controller_Firmware_40T1C_LN_2.63.60.61_A00.BIN -q
3 years ago
register: result
failed_when: 'result.rc >3 '