Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/idrac_reset/README.md

raw symbols SCIP
1 # idrac_reset
2
3 Role to reset and restart iDRAC (iDRAC8 and iDRAC9 only) for Dell PowerEdge servers.
4
5 ## Requirements
6
7 ### Development
8 Requirements to develop and contribute to the role.
9 ```
10 ansible
11 docker
12 molecule
13 python
14 ```
15 ### Production
16 Requirements to use the role.
17 ```
18 ansible
19 python
20 ```
21
22 ### Ansible collections
23 Collections required to use the role
24 ```
25 dellemc.openmanage
26 ```
27
28 ## Role Variables
29
30 <table>
31 <thead>
32 <tr>
33 <th>Name</th>
34 <th>Required</th>
35 <th>Default Value</th>
36 <th>Choices</th>
37 <th>Type</th>
38 <th>Description</th>
39 </tr>
40 </thead>
41 <tbody>
42 <tr>
43 <td>hostname</td>
44 <td>true</td>
45 <td></td>
46 <td></td>
47 <td>str</td>
48 <td>- iDRAC IP Address</td>
49 </tr>
50 <tr>
51 <td>username</td>
52 <td>true</td>
53 <td></td>
54 <td></td>
55 <td>str</td>
56 <td>- iDRAC username</td>
57 </tr>
58 <tr>
59 <td>password</td>
60 <td>true</td>
61 <td></td>
62 <td></td>
63 <td>str</td>
64 <td>- iDRAC user password.</td>
65 </tr>
66 <tr>
67 <td>https_port</td>
68 <td>false</td>
69 <td>443</td>
70 <td></td>
71 <td>int</td>
72 <td>- iDRAC port.</td>
73 </tr>
74 <tr>
75 <td>validate_certs</td>
76 <td>false</td>
77 <td>true</td>
78 <td></td>
79 <td>bool</td>
80 <td>- If C(false), the SSL certificates will not be validated.<br>- Configure C(false) only on personally controlled sites where self-signed certificates are used.</td>
81 </tr>
82 <tr>
83 <td>ca_path</td>
84 <td>false</td>
85 <td></td>
86 <td></td>
87 <td>path</td>
88 <td>- The Privacy Enhanced Mail (PEM) file that contains a CA certificate to be used for the validation.</td>
89 </tr>
90 <tr>
91 <td>https_timeout</td>
92 <td>false</td>
93 <td>30</td>
94 <td></td>
95 <td>int</td>
96 <td>- The HTTPS socket level timeout in seconds.</td>
97 </tr>
98 <tr>
99 <td>wait_for_idrac</td>
100 <td>false</td>
101 <td>true</td>
102 <td></td>
103 <td>bool</td>
104 <td>- Wait for the iDRAC to restart and LC status to be ready.<br>- When I(reset_to_default) is C(All), the IP address of iDRAC might not be accessible because of the change in network settings.<br>- When I(reset_to_default) is C(ResetAllWithRootDefaults), the IP address of iDRAC might not be accessible because of the change in network settings.</td>
105 </tr>
106 <tr>
107 <td>force_reset</td>
108 <td>false</td>
109 <td>false</td>
110 <td></td>
111 <td>bool</td>
112 <td>- Force restart the idrac without checking the idrac lifecycle controller status.</td>
113 </tr>
114 <tr>
115 reset_to_default:
116 <td>reset_to_default</td>
117 <td>false</td>
118 <td></td>
119 <td>["All", "ResetAllWithRootDefaults", "Default"]</td>
120 <td>str</td>
121 <td>- Reset the iDRAC to factory default settings.<br>- If this value is not set, then the default behaviour is to restart the iDRAC.<br>- C(All)This action will reset your iDRAC to the factory defaults. SupportAssist settings including registration information will be permanently removed. Username and password will reset to default credentials.<br>- C(ResetAllWithRootDefaults)This action will reset your iDRAC to the factory defaults. SupportAssist settings including registration information will be permanently removed. Default username will reset to root and password to the shipping value (root/shipping value).<br>- C(Default)This action will reset your iDRAC to the factory defaults. SupportAssist settings including registration information will be permanently removed. User and network settings will be preserved.<br>- "Note: Supported only for iDRAC9."</td>
122 </tr>
123 </tbody>
124 </table>
125
126 ## Fact variables
127
128 <table>
129 <thead>
130 <tr>
131 <th>Name</th>
132 <th>Sample</th>
133 <th>Description</th>
134 </tr>
135 </thead>
136 <tbody>
137 <tr>
138 <td>idrac_reset_out</td>
139 <td>{"msg": "iDRAC reset operation completed successfully"
140 }</td>
141 <td>Module output of idrac reset</td>
142 </tbody>
143 </table>
144
145 ## Examples
146 -----
147
148 ```
149 - name: Restart the idrac and wait for the idrac to be ready
150 ansible.builtin.include_role:
151 name: idrac_reset
152 vars:
153 hostname: "192.168.0.1"
154 username: "username"
155 password: "password"
156
157 - name: Restart the idrac and do not wait for the idrac to be ready
158 ansible.builtin.include_role:
159 name: idrac_reset
160 vars:
161 hostname: "192.168.0.1"
162 username: "username"
163 password: "password"
164 wait_for_idrac: false
165
166 - name: Reset the idrac and wait for the idrac to be ready
167 ansible.builtin.include_role:
168 name: idrac_reset
169 vars:
170 hostname: "192.168.0.1"
171 username: "username"
172 password: "password"
173 reset_to_default: "All"
174 ```
175
176 ## Author Information
177 ------------------
178
179 Dell Technologies <br>
180 Kritika Bhateja ([email protected]) 2023