| 1 | --- |
| 2 | - name: Configure Boot Mode Setting |
| 3 | hosts: idrac |
| 4 | gather_facts: false |
| 5 | |
| 6 | tasks: |
| 7 | - name: Configure Bios Generic Attributes |
| 8 | dellemc.openmanage.idrac_bios: |
| 9 | idrac_ip: "{{ idrac_ip }}" |
| 10 | idrac_user: "{{ idrac_user }}" |
| 11 | idrac_password: "{{ idrac_password }}" |
| 12 | ca_path: "/path/to/ca_cert.pem" |
| 13 | attributes: |
| 14 | BootMode: "Bios" |
| 15 | OneTimeBootMode: "Enabled" |
| 16 | BootSeqRetry: "Enabled" |
| 17 | tags: |
| 18 | - bootconfig |
| 19 | delegate_to: localhost |
| 20 | |
| 21 | - name: Configure PXE Generic Attributes |
| 22 | dellemc.openmanage.idrac_bios: |
| 23 | idrac_ip: "{{ idrac_ip }}" |
| 24 | idrac_user: "{{ idrac_user }}" |
| 25 | idrac_password: "{{ idrac_password }}" |
| 26 | ca_path: "/path/to/ca_cert.pem" |
| 27 | attributes: |
| 28 | PxeDev1EnDis: "Enabled" |
| 29 | PxeDev1Protocol: "IPV4" |
| 30 | PxeDev1VlanEnDis: "Enabled" |
| 31 | PxeDev1VlanId: x |
| 32 | PxeDev1Interface: "NIC.Embedded.x-x-x" |
| 33 | PxeDev1VlanPriority: x |
| 34 | tags: |
| 35 | - pxeconfig |
| 36 | delegate_to: localhost |
| 37 | |
| 38 | - name: Configure attributes of the BIOS at Maintenance window |
| 39 | dellemc.openmanage.idrac_bios: |
| 40 | idrac_ip: "{{ idrac_ip }}" |
| 41 | idrac_user: "{{ idrac_user }}" |
| 42 | idrac_password: "{{ idrac_password }}" |
| 43 | ca_path: "/path/to/ca_cert.pem" |
| 44 | apply_time: AtMaintenanceWindowStart |
| 45 | maintenance_window: |
| 46 | start_time: "2022-09-30T05:15:40-05:00" |
| 47 | duration: 600 |
| 48 | attributes: |
| 49 | BootMode: "Bios" |
| 50 | OneTimeBootMode: "Enabled" |
| 51 | BootSeqRetry: "Enabled" |
| 52 | tags: |
| 53 | - at_maintenance_start |
| 54 | delegate_to: localhost |
| 55 | |
| 56 | - name: Clear pending BIOS attributes |
| 57 | dellemc.openmanage.idrac_bios: |
| 58 | idrac_ip: "{{ idrac_ip }}" |
| 59 | idrac_user: "{{ idrac_user }}" |
| 60 | idrac_password: "{{ idrac_password }}" |
| 61 | ca_path: "/path/to/ca_cert.pem" |
| 62 | clear_pending: true |
| 63 | tags: |
| 64 | - clear_pending |
| 65 | delegate_to: localhost |
| 66 | |
| 67 | - name: Reset BIOS attributes to default settings. |
| 68 | dellemc.openmanage.idrac_bios: |
| 69 | idrac_ip: "{{ idrac_ip }}" |
| 70 | idrac_user: "{{ idrac_user }}" |
| 71 | idrac_password: "{{ idrac_pwd }}" |
| 72 | ca_path: "/path/to/ca_cert.pem" |
| 73 | reset_bios: true |
| 74 | tags: |
| 75 | - reset_bios |
| 76 | delegate_to: localhost |
| 77 | |
| 78 | - name: Configure Boot Sources |
| 79 | dellemc.openmanage.idrac_bios: |
| 80 | idrac_ip: "{{ idrac_ip }}" |
| 81 | idrac_user: "{{ idrac_user }}" |
| 82 | idrac_password: "{{ idrac_password }}" |
| 83 | ca_path: "/path/to/ca_cert.pem" |
| 84 | boot_sources: |
| 85 | - Name: "NIC.Integrated.x-x-x" |
| 86 | Enabled: true |
| 87 | Index: 1 |
| 88 | - Name: "NIC.Integrated.x-x-x" |
| 89 | Enabled: true |
| 90 | Index: 0 |
| 91 | tags: |
| 92 | - boot_sources |
| 93 | delegate_to: localhost |
| 94 | |
| 95 | - name: Configure Boot Sources - Enabled |
| 96 | dellemc.openmanage.idrac_bios: |
| 97 | idrac_ip: "{{ idrac_ip }}" |
| 98 | idrac_user: "{{ idrac_user }}" |
| 99 | idrac_password: "{{ idrac_password }}" |
| 100 | ca_path: "/path/to/ca_cert.pem" |
| 101 | boot_sources: |
| 102 | - Name: "HardDisk.List.1-1" |
| 103 | Enabled: true |
| 104 | tags: |
| 105 | - boot_sources_enabled |
| 106 | delegate_to: localhost |
| 107 | |
| 108 | - name: Configure Boot Sources - Index |
| 109 | dellemc.openmanage.idrac_bios: |
| 110 | idrac_ip: "{{ idrac_ip }}" |
| 111 | idrac_user: "{{ idrac_user }}" |
| 112 | idrac_password: "{{ idrac_password }}" |
| 113 | ca_path: "/path/to/ca_cert.pem" |
| 114 | boot_sources: |
| 115 | - Name: "NIC.Integrated.x-x-x" |
| 116 | Index: 1 |
| 117 | tags: |
| 118 | - boot_sources_index |
| 119 | delegate_to: localhost |