Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/idrac/idrac_server_config_profile.yml

raw symbols SCIP
1 ---
2 - name: Server Configuration Profile
3 hosts: idrac
4 gather_facts: false
5
6 tasks:
7 - name: Export SCP with IDRAC components in JSON format to a local path
8 dellemc.openmanage.idrac_server_config_profile:
9 idrac_ip: "{{ idrac_ip }}"
10 idrac_user: "{{ idrac_user }}"
11 idrac_password: "{{ idrac_password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 share_name: "/scp_folder"
14 scp_components:
15 - IDRAC
16 scp_file: example_file
17 export_format: JSON
18 export_use: Clone
19 job_wait: true
20 tags: export-scp-local
21 delegate_to: localhost
22
23 - name: Import SCP with IDRAC components in JSON format from a local path
24 dellemc.openmanage.idrac_server_config_profile:
25 idrac_ip: "{{ idrac_ip }}"
26 idrac_user: "{{ idrac_user }}"
27 idrac_password: "{{ idrac_password }}"
28 ca_path: "/path/to/ca_cert.pem"
29 share_name: "/scp_folder"
30 command: import
31 scp_components:
32 - IDRAC
33 scp_file: example_file.json
34 shutdown_type: Graceful
35 end_host_power_state: "On"
36 job_wait: false
37 tags: import-scp-local
38 delegate_to: localhost
39
40 - name: Export SCP with BIOS components in XML format to a NFS share path with auto-generated file name
41 dellemc.openmanage.idrac_server_config_profile:
42 idrac_ip: "{{ idrac_ip }}"
43 idrac_user: "{{ idrac_user }}"
44 idrac_password: "{{ idrac_password }}"
45 ca_path: "/path/to/ca_cert.pem"
46 share_name: "192.168.0.2:/share"
47 scp_components:
48 - BIOS
49 export_format: XML
50 export_use: Default
51 job_wait: true
52 tags: export-scp-nfs
53 delegate_to: localhost
54
55 - name: Import SCP with BIOS components in XML format from a NFS share path
56 dellemc.openmanage.idrac_server_config_profile:
57 idrac_ip: "{{ idrac_ip }}"
58 idrac_user: "{{ idrac_user }}"
59 idrac_password: "{{ idrac_password }}"
60 ca_path: "/path/to/ca_cert.pem"
61 share_name: "192.168.0.2:/share"
62 command: import
63 scp_components:
64 - BIOS
65 scp_file: 192.168.0.1_20210618_162856.xml
66 shutdown_type: NoReboot
67 end_host_power_state: "Off"
68 job_wait: false
69 tags: import-scp-nfs
70 delegate_to: localhost
71
72 - name: Export SCP with RAID components in XML format to a CIFS share path with share user domain name
73 dellemc.openmanage.idrac_server_config_profile:
74 idrac_ip: "{{ idrac_ip }}"
75 idrac_user: "{{ idrac_user }}"
76 idrac_password: "{{ idrac_password }}"
77 ca_path: "/path/to/ca_cert.pem"
78 share_name: "\\\\192.168.0.2\\share"
79 share_user: share_username@domain
80 share_password: share_password
81 scp_file: example_file.xml
82 scp_components:
83 - RAID
84 export_format: XML
85 export_use: Default
86 job_wait: true
87 tags: export-scp-cifs
88 delegate_to: localhost
89
90 - name: Import SCP with RAID components in XML format from a CIFS share path
91 dellemc.openmanage.idrac_server_config_profile:
92 idrac_ip: "{{ idrac_ip }}"
93 idrac_user: "{{ idrac_user }}"
94 idrac_password: "{{ idrac_password }}"
95 ca_path: "/path/to/ca_cert.pem"
96 share_name: "\\\\192.168.0.2\\share"
97 share_user: share_username
98 share_password: share_password
99 command: import
100 scp_components:
101 - RAID
102 scp_file: example_file.xml
103 shutdown_type: Forced
104 end_host_power_state: "On"
105 job_wait: true
106 tags: import-scp-cifs
107 delegate_to: localhost
108
109 - name: Export SCP with ALL components in JSON format to a HTTP share path
110 dellemc.openmanage.idrac_server_config_profile:
111 idrac_ip: "{{ idrac_ip }}"
112 idrac_user: "{{ idrac_user }}"
113 idrac_password: "{{ idrac_password }}"
114 ca_path: "/path/to/ca_cert.pem"
115 share_name: "http://192.168.0.3/share"
116 share_user: share_username
117 share_password: share_password
118 scp_file: example_file.json
119 scp_components:
120 - ALL
121 export_format: JSON
122 job_wait: false
123 tags: export-scp-http
124 delegate_to: localhost
125
126 - name: Import SCP with ALL components in JSON format from a HTTP share path
127 dellemc.openmanage.idrac_server_config_profile:
128 idrac_ip: "{{ idrac_ip }}"
129 idrac_user: "{{ idrac_user }}"
130 idrac_password: "{{ idrac_password }}"
131 ca_path: "/path/to/ca_cert.pem"
132 command: import
133 share_name: "http://192.168.0.3/share"
134 share_user: share_username
135 share_password: share_password
136 scp_file: example_file.json
137 shutdown_type: Graceful
138 end_host_power_state: "On"
139 job_wait: true
140 tags: import-scp-http
141 delegate_to: localhost
142
143 - name: Export SCP with ALL components in XML format to a HTTPS share path without SCP file name
144 dellemc.openmanage.idrac_server_config_profile:
145 idrac_ip: "{{ idrac_ip }}"
146 idrac_user: "{{ idrac_user }}"
147 idrac_password: "{{ idrac_password }}"
148 ca_path: "/path/to/ca_cert.pem"
149 share_name: "https://192.168.0.4/share"
150 share_user: share_username
151 share_password: share_password
152 scp_components:
153 - ALL
154 export_format: XML
155 export_use: Replace
156 job_wait: true
157 tags: export-scp-https
158 delegate_to: localhost
159
160 - name: Import SCP with ALL components in XML format from a HTTPS share path
161 dellemc.openmanage.idrac_server_config_profile:
162 idrac_ip: "{{ idrac_ip }}"
163 idrac_user: "{{ idrac_user }}"
164 idrac_password: "{{ idrac_password }}"
165 ca_path: "/path/to/ca_cert.pem"
166 command: import
167 share_name: "https://192.168.0.4/share"
168 share_user: share_username
169 share_password: share_password
170 scp_file: 192.168.0.1_20160618_164647.xml
171 shutdown_type: Graceful
172 end_host_power_state: "On"
173 job_wait: false
174 tags: import-scp-https
175 delegate_to: localhost
176
177 - name: Preview SCP with ALL components in XML format from a CIFS share path
178 dellemc.openmanage.idrac_server_config_profile:
179 idrac_ip: "{{ idrac_ip }}"
180 idrac_user: "{{ idrac_user }}"
181 idrac_password: "{{ idrac_password }}"
182 ca_path: "/path/to/ca_cert.pem"
183 share_name: "\\\\192.168.0.2\\share"
184 share_user: share_username
185 share_password: share_password
186 command: preview
187 scp_components:
188 - ALL
189 scp_file: example_file.xml
190 job_wait: true
191 tags: preview-scp-cifs
192 delegate_to: localhost
193
194 - name: Preview SCP with IDRAC components in JSON format from a NFS share path
195 dellemc.openmanage.idrac_server_config_profile:
196 idrac_ip: "{{ idrac_ip }}"
197 idrac_user: "{{ idrac_user }}"
198 idrac_password: "{{ idrac_password }}"
199 ca_path: "/path/to/ca_cert.pem"
200 share_name: "192.168.0.2:/share"
201 command: preview
202 scp_components:
203 - IDRAC
204 scp_file: example_file.xml
205 job_wait: true
206 tags: preview-scp-nfs
207 delegate_to: localhost
208
209 - name: Preview SCP with ALL components in XML format from a HTTP share path
210 dellemc.openmanage.idrac_server_config_profile:
211 idrac_ip: "{{ idrac_ip }}"
212 idrac_user: "{{ idrac_user }}"
213 idrac_password: "{{ idrac_password }}"
214 ca_path: "/path/to/ca_cert.pem"
215 share_name: "http://192.168.0.1/http-share"
216 share_user: share_username
217 share_password: share_password
218 command: preview
219 scp_components:
220 - ALL
221 scp_file: example_file.xml
222 job_wait: true
223 tags: preview-scp-http
224 delegate_to: localhost
225
226 - name: Preview SCP with IDRAC components in XML format from a local path
227 dellemc.openmanage.idrac_server_config_profile:
228 idrac_ip: "{{ idrac_ip }}"
229 idrac_user: "{{ idrac_user }}"
230 idrac_password: "{{ idrac_password }}"
231 ca_path: "/path/to/ca_cert.pem"
232 share_name: "/scp_folder"
233 command: preview
234 scp_components:
235 - IDRAC
236 scp_file: example_file.json
237 job_wait: false
238 tags: import-scp-local
239 delegate_to: localhost
240
241 - name: Import SCP with IDRAC components in XML format from the XML content.
242 dellemc.openmanage.idrac_server_config_profile:
243 idrac_ip: "{{ idrac_ip }}"
244 idrac_user: "{{ idrac_user }}"
245 idrac_password: "{{ idrac_password }}"
246 ca_path: "/path/to/ca_cert.pem"
247 command: import
248 scp_components:
249 - IDRAC
250 job_wait: true
251 import_buffer: "<SystemConfiguration><Component FQDD='iDRAC.Embedded.1'><Attribute Name='IPMILan.1#Enable'>
252 Disabled</Attribute></Component></SystemConfiguration>"
253 tags: import-buffer-xml
254 delegate_to: localhost
255
256 - name: Export SCP with ALL components in XML format using HTTP proxy.
257 dellemc.openmanage.idrac_server_config_profile:
258 idrac_ip: "{{ idrac_ip }}"
259 idrac_user: "{{ idrac_user }}"
260 idrac_password: "{{ idrac_password }}"
261 ca_path: "/path/to/ca_cert.pem"
262 scp_components:
263 - ALL
264 share_name: "https://192.168.0.1/http-share"
265 proxy_support: true
266 proxy_server: 192.168.0.5
267 proxy_port: 8080
268 proxy_username: proxy_username
269 proxy_password: proxy_password
270 proxy_type: http
271 include_in_export: passwordhashvalues
272 job_wait: true
273 tags: export-http-proxy
274 delegate_to: localhost
275
276 - name: Import SCP with IDRAC and BIOS components in XML format using SOCKS4 proxy
277 dellemc.openmanage.idrac_server_config_profile:
278 idrac_ip: "{{ idrac_ip }}"
279 idrac_user: "{{ idrac_user }}"
280 idrac_password: "{{ idrac_password }}"
281 ca_path: "/path/to/ca_cert.pem"
282 command: import
283 scp_components:
284 - IDRAC
285 - BIOS
286 share_name: "https://192.168.0.1/http-share"
287 proxy_support: true
288 proxy_server: 192.168.0.6
289 proxy_port: 8080
290 proxy_type: socks4
291 scp_file: filename.xml
292 job_wait: true
293 tags: import-scp-proxy
294 delegate_to: localhost
295
296 - name: Import SCP with IDRAC components in JSON format from the JSON content.
297 dellemc.openmanage.idrac_server_config_profile:
298 idrac_ip: "{{ idrac_ip }}"
299 idrac_user: "{{ idrac_user }}"
300 idrac_password: "{{ idrac_password }}"
301 ca_path: "/path/to/ca_cert.pem"
302 command: import
303 scp_components:
304 - IDRAC
305 job_wait: true
306 import_buffer: "{\"SystemConfiguration\": {\"Components\": [{\"FQDD\": \"iDRAC.Embedded.1\",\"Attributes\":
307 [{\"Name\": \"SNMP.1#AgentCommunity\",\"Value\": \"public1\"}]}]}}"
308 tags: import-scp-json
309 delegate_to: localhost
310
311 - name: Export custom default
312 dellemc.openmanage.idrac_server_config_profile:
313 idrac_ip: "{{ idrac_ip }}"
314 idrac_user: "{{ idrac_user }}"
315 idrac_password: "{{ idrac_password }}"
316 ca_path: "/path/to/ca_cert.pem"
317 job_wait: true
318 share_name: "/scp_folder"
319 command: export_custom_defaults
320 scp_file: example_file
321
322 - name: Import custom default
323 dellemc.openmanage.idrac_server_config_profile:
324 idrac_ip: "{{ idrac_ip }}"
325 idrac_user: "{{ idrac_user }}"
326 idrac_password: "{{ idrac_password }}"
327 ca_path: "/path/to/ca_cert.pem"
328 job_wait: true
329 share_name: "/scp_folder"
330 command: import_custom_defaults
331 scp_file: example_file.xml
332
333 - name: Import custom default using buffer
334 dellemc.openmanage.idrac_server_config_profile:
335 idrac_ip: "{{ idrac_ip }}"
336 idrac_user: "{{ idrac_user }}"
337 idrac_password: "{{ idrac_password }}"
338 ca_path: "/path/to/ca_cert.pem"
339 job_wait: true
340 command: import_custom_defaults
341 import_buffer: "<SystemConfiguration><Component
342 FQDD='iDRAC.Embedded.1'><Attribute
343 Name='IPMILan.1#Enable'>Disabled</Attribute>
344 </Component></SystemConfiguration>"