| 1 | --- |
| 2 | - name: "OME - Update Firmware" |
| 3 | hosts: ome |
| 4 | gather_facts: false |
| 5 | |
| 6 | tasks: |
| 7 | - name: Update firmware from a DUP file using a device ids |
| 8 | dellemc.openmanage.ome_firmware: |
| 9 | hostname: "{{ hostname }}" |
| 10 | username: "{{ username }}" |
| 11 | password: "{{ password }}" |
| 12 | ca_path: "/path/to/ca_cert.pem" |
| 13 | device_id: |
| 14 | - 11111 |
| 15 | - 22222 |
| 16 | dup_file: "/path/Chassis-System-Management_Firmware_6N9WN_WN64_1.00.01_A00.EXE" |
| 17 | delegate_to: localhost |
| 18 | |
| 19 | - name: Update firmware from a DUP file using a device service tags |
| 20 | dellemc.openmanage.ome_firmware: |
| 21 | hostname: "{{ hostname }}" |
| 22 | username: "{{ username }}" |
| 23 | password: "{{ password }}" |
| 24 | ca_path: "/path/to/ca_cert.pem" |
| 25 | device_service_tag: |
| 26 | - KLBR111 |
| 27 | - KLBR222 |
| 28 | dup_file: "/path/Network_Firmware_NTRW0_WN64_14.07.07_A00-00_01.EXE" |
| 29 | delegate_to: localhost |
| 30 | |
| 31 | - name: Update firmware from a DUP file using a device group names |
| 32 | dellemc.openmanage.ome_firmware: |
| 33 | hostname: "{{ hostname }}" |
| 34 | username: "{{ username }}" |
| 35 | password: "{{ password }}" |
| 36 | ca_path: "/path/to/ca_cert.pem" |
| 37 | device_group_names: |
| 38 | - servers |
| 39 | dup_file: "/path/BIOS_87V69_WN64_2.4.7.EXE" |
| 40 | delegate_to: localhost |
| 41 | |
| 42 | - name: Update firmware using baseline name |
| 43 | dellemc.openmanage.ome_firmware: |
| 44 | hostname: "{{ hostname }}" |
| 45 | username: "{{ username }}" |
| 46 | password: "{{ password }}" |
| 47 | ca_path: "/path/to/ca_cert.pem" |
| 48 | baseline_name: baseline_devices |
| 49 | delegate_to: localhost |
| 50 | |
| 51 | - name: Stage firmware for the next reboot using baseline name |
| 52 | dellemc.openmanage.ome_firmware: |
| 53 | hostname: "{{ hostname }}" |
| 54 | username: "{{ username }}" |
| 55 | password: "{{ password }}" |
| 56 | ca_path: "/path/to/ca_cert.pem" |
| 57 | baseline_name: baseline_devices |
| 58 | schedule: StageForNextReboot |
| 59 | delegate_to: localhost |
| 60 | |
| 61 | - name: Update firmware using baseline name and components |
| 62 | dellemc.openmanage.ome_firmware: |
| 63 | hostname: "{{ hostname }}" |
| 64 | username: "{{ username }}" |
| 65 | password: "{{ password }}" |
| 66 | ca_path: "/path/to/ca_cert.pem" |
| 67 | baseline_name: baseline_devices |
| 68 | components: |
| 69 | - BIOS |
| 70 | delegate_to: localhost |
| 71 | |
| 72 | - name: Update firmware of device components from a DUP file using a device ids in a baseline |
| 73 | dellemc.openmanage.ome_firmware: |
| 74 | hostname: "{{ hostname }}" |
| 75 | username: "{{ username }}" |
| 76 | password: "{{ password }}" |
| 77 | ca_path: "/path/to/ca_cert.pem" |
| 78 | baseline_name: baseline_devices |
| 79 | device_id: |
| 80 | - 11111 |
| 81 | - 22222 |
| 82 | components: |
| 83 | - iDRAC with Lifecycle Controller |
| 84 | delegate_to: localhost |
| 85 | |
| 86 | - name: Update firmware of device components from a baseline using a device service tags under a baseline |
| 87 | dellemc.openmanage.ome_firmware: |
| 88 | hostname: "{{ hostname }}" |
| 89 | username: "{{ username }}" |
| 90 | password: "{{ password }}" |
| 91 | ca_path: "/path/to/ca_cert.pem" |
| 92 | baseline_name: baseline_devices |
| 93 | device_service_tag: |
| 94 | - KLBR111 |
| 95 | - KLBR222 |
| 96 | components: |
| 97 | - IOM-SAS |
| 98 | delegate_to: localhost |
| 99 | |
| 100 | - name: Update firmware using baseline name with a device id and required components |
| 101 | dellemc.openmanage.ome_firmware: |
| 102 | hostname: "{{ hostname }}" |
| 103 | username: "{{ username }}" |
| 104 | password: "{{ password }}" |
| 105 | ca_path: "/path/to/ca_cert.pem" |
| 106 | baseline_name: baseline_devices |
| 107 | devices: |
| 108 | - id: 12345 |
| 109 | components: |
| 110 | - Lifecycle Controller |
| 111 | - id: 12346 |
| 112 | components: |
| 113 | - Enterprise UEFI Diagnostics |
| 114 | - BIOS |
| 115 | delegate_to: localhost |
| 116 | |
| 117 | - name: Update firmware using baseline name with a device service tag and required components |
| 118 | dellemc.openmanage.ome_firmware: |
| 119 | hostname: "{{ hostname }}" |
| 120 | username: "{{ username }}" |
| 121 | password: "{{ password }}" |
| 122 | ca_path: "/path/to/ca_cert.pem" |
| 123 | baseline_name: baseline_devices |
| 124 | devices: |
| 125 | - service_tag: ABCDE12 |
| 126 | components: |
| 127 | - PERC H740P Adapter |
| 128 | - BIOS |
| 129 | - service_tag: GHIJK34 |
| 130 | components: |
| 131 | - OS Drivers Pack |
| 132 | delegate_to: localhost |
| 133 | |
| 134 | - name: Update firmware using baseline name with a device service tag or device id and required components |
| 135 | dellemc.openmanage.ome_firmware: |
| 136 | hostname: "{{ hostname }}" |
| 137 | username: "{{ username }}" |
| 138 | password: "{{ password }}" |
| 139 | ca_path: "/path/to/ca_cert.pem" |
| 140 | baseline_name: baseline_devices |
| 141 | devices: |
| 142 | - service_tag: ABCDE12 |
| 143 | components: |
| 144 | - BOSS-S1 Adapter |
| 145 | - PowerEdge Server BIOS |
| 146 | - id: 12345 |
| 147 | components: |
| 148 | - iDRAC with Lifecycle Controller |
| 149 | delegate_to: localhost |
| 150 | |
| 151 | - name: "Update firmware using baseline name and components and perform Powercycle." |
| 152 | dellemc.openmanage.ome_firmware: |
| 153 | hostname: "192.168.0.1" |
| 154 | username: "username" |
| 155 | password: "password" |
| 156 | ca_path: "/path/to/ca_cert.pem" |
| 157 | baseline_name: baseline_devices |
| 158 | components: |
| 159 | - BIOS |
| 160 | reboot_type: PowerCycle |
| 161 | delegate_to: localhost |