| 1 |
--- |
| 2 |
- name: Dell OpenManage Ansible iDRAC Network Attributes. |
| 3 |
hosts: idrac |
| 4 |
gather_facts: false |
| 5 |
|
| 6 |
tasks: |
| 7 |
- name: Configure OEM network attributes |
| 8 |
dellemc.openmanage.idrac_network_attributes: |
| 9 |
idrac_ip: "192.168.0.1" |
| 10 |
idrac_user: "user_name" |
| 11 |
idrac_password: "user_password" |
| 12 |
network_adapter_id: "NIC.Integrated.1" |
| 13 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 14 |
apply_time: "Immediate" |
| 15 |
oem_network_attributes: |
| 16 |
BannerMessageTimeout: "4" |
| 17 |
delegate_to: localhost |
| 18 |
|
| 19 |
- name: Configure OEM network attributes to apply on reset |
| 20 |
dellemc.openmanage.idrac_network_attributes: |
| 21 |
idrac_ip: "192.168.0.1" |
| 22 |
idrac_user: "user_name" |
| 23 |
idrac_password: "user_password" |
| 24 |
network_adapter_id: NIC.Integrated.1 |
| 25 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 26 |
oem_network_attributes: |
| 27 |
BannerMessageTimeout: "4" |
| 28 |
apply_time: OnReset |
| 29 |
maintenance_window: |
| 30 |
start_time: "2022-09-30T05:15:40-05:00" |
| 31 |
duration: 600 |
| 32 |
delegate_to: localhost |
| 33 |
|
| 34 |
- name: Configure OEM network attributes to apply at maintainance window |
| 35 |
dellemc.openmanage.idrac_network_attributes: |
| 36 |
idrac_ip: "192.168.0.1" |
| 37 |
idrac_user: "user_name" |
| 38 |
idrac_password: "user_password" |
| 39 |
network_adapter_id: NIC.Integrated.1 |
| 40 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 41 |
oem_network_attributes: |
| 42 |
BannerMessageTimeout: "4" |
| 43 |
apply_time: AtMaintenanceWindowStart |
| 44 |
maintenance_window: |
| 45 |
start_time: "2022-09-30T05:15:40-05:00" |
| 46 |
duration: 600 |
| 47 |
delegate_to: localhost |
| 48 |
|
| 49 |
- name: Clearing the OEM pending attributes |
| 50 |
dellemc.openmanage.idrac_network_attributes: |
| 51 |
idrac_ip: "192.168.0.1" |
| 52 |
idrac_user: "user_name" |
| 53 |
idrac_password: "user_password" |
| 54 |
network_adapter_id: NIC.Integrated.1 |
| 55 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 56 |
apply_time: "Immediate" |
| 57 |
clear_pending: true |
| 58 |
delegate_to: localhost |
| 59 |
|
| 60 |
- name: Configure OEM network attributes and wait for the job |
| 61 |
dellemc.openmanage.idrac_network_attributes: |
| 62 |
idrac_ip: "192.168.0.1" |
| 63 |
idrac_user: "user_name" |
| 64 |
idrac_password: "user_password" |
| 65 |
network_adapter_id: NIC.Integrated.1 |
| 66 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 67 |
apply_time: "Immediate" |
| 68 |
oem_network_attributes: |
| 69 |
LnkSpeed: "10MbpsHalf" |
| 70 |
WakeOnLan: "Enabled" |
| 71 |
VLanMode: "Enabled" |
| 72 |
job_wait: true |
| 73 |
job_wait_timeout: 2000 |
| 74 |
delegate_to: localhost |
| 75 |
|
| 76 |
- name: Configure redfish network attributes to update fiber channel on reset |
| 77 |
dellemc.openmanage.idrac_network_attributes: |
| 78 |
idrac_ip: "192.168.0.1" |
| 79 |
idrac_user: "user_name" |
| 80 |
idrac_password: "user_password" |
| 81 |
network_adapter_id: NIC.Integrated.1 |
| 82 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 83 |
apply_time: OnReset |
| 84 |
network_attributes: |
| 85 |
Ethernet: |
| 86 |
VLAN: |
| 87 |
VLANEnable: true |
| 88 |
delegate_to: localhost |
| 89 |
|
| 90 |
- name: Configure redfish network attributes to apply on reset |
| 91 |
dellemc.openmanage.idrac_network_attributes: |
| 92 |
idrac_ip: "192.168.0.1" |
| 93 |
idrac_user: "user_name" |
| 94 |
idrac_password: "user_password" |
| 95 |
network_adapter_id: NIC.Integrated.1 |
| 96 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 97 |
network_attributes: |
| 98 |
Ethernet: |
| 99 |
VLAN: |
| 100 |
VLANEnable: true |
| 101 |
apply_time: OnReset |
| 102 |
maintenance_window: |
| 103 |
start_time: "2022-09-30T05:15:40-05:00" |
| 104 |
duration: 600 |
| 105 |
delegate_to: localhost |
| 106 |
|
| 107 |
- name: Configure redfish network attributes of iscsi to apply at maintainance window start |
| 108 |
dellemc.openmanage.idrac_network_attributes: |
| 109 |
idrac_ip: "192.168.0.1" |
| 110 |
idrac_user: "user_name" |
| 111 |
idrac_password: "user_password" |
| 112 |
network_adapter_id: NIC.Integrated.1 |
| 113 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 114 |
network_attributes: |
| 115 |
iSCSIBoot: |
| 116 |
InitiatorIPAddress: 1.0.0.1 |
| 117 |
apply_time: AtMaintenanceWindowStart |
| 118 |
maintenance_window: |
| 119 |
start_time: "2022-09-30T05:15:40-05:00" |
| 120 |
duration: 600 |
| 121 |
delegate_to: localhost |
| 122 |
|
| 123 |
- name: Configure redfish network attributes to apply at maintainance window on reset |
| 124 |
dellemc.openmanage.idrac_network_attributes: |
| 125 |
idrac_ip: "192.168.0.1" |
| 126 |
idrac_user: "user_name" |
| 127 |
idrac_password: "user_password" |
| 128 |
network_adapter_id: NIC.Integrated.1 |
| 129 |
network_device_function_id: "NIC.Integrated.1-1-1" |
| 130 |
network_attributes: |
| 131 |
Ethernet: |
| 132 |
VLAN: |
| 133 |
VLANEnable: false |
| 134 |
VLANId: 1 |
| 135 |
apply_time: AtMaintenanceWindowStart |
| 136 |
maintenance_window: |
| 137 |
start_time: "2022-09-30T05:15:40-05:00" |
| 138 |
duration: 600 |
| 139 |
delegate_to: localhost |