test_idrac.yml 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. # Provisioning server with enterprise license where boot mode is UEFI, VD present, firmware updated,SNMP is already configured using iDRAC
  16. - name: OMNIA_1.1_iDRAC_TC_001
  17. hosts: all
  18. connection: local
  19. vars_files:
  20. - test_vars/test_idrac_vars.yml
  21. - ../roles/webui_awx/vars/main.yml
  22. - ../input_params/base_vars.yml
  23. collections:
  24. - dellemc.openmanage
  25. - community.general
  26. tasks:
  27. - name: Check login_vars file is encrypted
  28. command: cat "{{ login_vars_path }}"
  29. changed_when: false
  30. register: config_content
  31. tags: always
  32. - name: Decrpyt login_vars.yml
  33. command: >-
  34. ansible-vault decrypt {{ login_vars_path }}
  35. --vault-password-file {{ login_vars_vault_path }}
  36. changed_when: false
  37. when: "'$ANSIBLE_VAULT;' in config_content.stdout"
  38. tags: always
  39. - name: Include variable file login_vars.yml
  40. include_vars: "{{ login_vars_path }}"
  41. tags: always
  42. - name: Encypt login file
  43. command: >-
  44. ansible-vault encrypt {{ login_vars_path }}
  45. --vault-password-file {{ login_vars_vault_path }}
  46. changed_when: false
  47. tags: always
  48. - name: Set system profile value
  49. lineinfile:
  50. path: "{{ idrac_var_path }}"
  51. regexp: "{{ sysprofile }}"
  52. line: "{{ sysprofile_params1 }}"
  53. run_once: true
  54. tags: TC_001
  55. - name: Set boot mode in SCP file
  56. lineinfile:
  57. path: "{{ temp_scp_path }}"
  58. regexp: 'Name="BootMode"'
  59. line: "{{ bootmode_regex1 }}"
  60. run_once: true
  61. tags: TC_001
  62. - name: Set system profile in SCP file
  63. lineinfile:
  64. path: "{{ temp_scp_path }}"
  65. regexp: "{{ sysprofile_attr_name }}"
  66. line: "{{ sysprofile_regex1 }}"
  67. run_once: true
  68. tags: TC_001
  69. - name: Set SNMP configuration in SCP file
  70. lineinfile:
  71. path: "{{ temp_scp_path }}"
  72. regexp: "{{ snmp_attr_name }}"
  73. line: "{{ snmp_regex1 }}"
  74. run_once: true
  75. tags: TC_001
  76. - name: Set enterprise license status
  77. set_fact:
  78. enterprise_license: true
  79. datacenter_license: true
  80. run_once: true
  81. tags: TC_001
  82. - name: Import SCP configuration
  83. idrac_server_config_profile:
  84. idrac_ip: "{{ inventory_hostname }}"
  85. idrac_user: "{{ idrac_username }}"
  86. idrac_password: "{{ idrac_password }}"
  87. share_name: "{{ playbook_dir }}"
  88. command: "import"
  89. scp_file: "{{ temp_scp_path }}"
  90. scp_components: "ALL"
  91. shutdown_type: "Graceful"
  92. job_wait: true
  93. tags: TC_001
  94. - block:
  95. - name: Calling the test_prepare script
  96. vars:
  97. inventory_name: "{{ idrac_inventory_name }}"
  98. template_name: "{{ template_value }}"
  99. job_template_name: "{{ job_name }}"
  100. playbook_path: "{{ idrac_playbook_path }}"
  101. delete_status: true
  102. include_tasks: "{{ awx_script_path }}"
  103. tags: TC_001
  104. - block:
  105. - name: Execute validation script
  106. include_tasks: "{{ validation_script_path }}"
  107. tags: TC_001,VERIFY_OMNIA_01
  108. # Provisioning server with enterprise license where boot mode is UEFI, VD present, firmware not updated,SNMP is not already configured using iDRAC.
  109. - name: OMNIA_1.1_iDRAC_TC_002
  110. hosts: all
  111. connection: local
  112. vars_files:
  113. - test_vars/test_idrac_vars.yml
  114. - ../roles/webui_awx/vars/main.yml
  115. - ../input_params/base_vars.yml
  116. collections:
  117. - dellemc.openmanage
  118. - community.general
  119. tasks:
  120. - name: Set system profile value
  121. lineinfile:
  122. path: "{{ idrac_var_path }}"
  123. regexp: "{{ sysprofile }}"
  124. line: "{{ sysprofile_params2 }}"
  125. run_once: true
  126. tags: TC_002
  127. - name: Set boot mode in SCP file
  128. lineinfile:
  129. path: "{{ temp_scp_path }}"
  130. regexp: "{{ bootmode_attr_name }}"
  131. line: "{{ bootmode_regex1 }}"
  132. run_once: true
  133. tags: TC_002
  134. - name: Set system profile in SCP file
  135. lineinfile:
  136. path: "{{ temp_scp_path }}"
  137. regexp: "{{ sysprofile_attr_name }}"
  138. line: "{{ sysprofile_regex2 }}"
  139. run_once: true
  140. tags: TC_002
  141. - name: Set SNMP configuration in SCP file
  142. lineinfile:
  143. path: "{{ temp_scp_path }}"
  144. regexp: "{{ snmp_attr_name }}"
  145. line: "{{ snmp_regex2 }}"
  146. run_once: true
  147. tags: TC_002
  148. - name: Set enterprise license status
  149. set_fact:
  150. enterprise_license: true
  151. datacenter_license: true
  152. run_once: true
  153. tags: TC_002
  154. - name: Import SCP configuration
  155. idrac_server_config_profile:
  156. idrac_ip: "{{ inventory_hostname }}"
  157. idrac_user: "{{ idrac_username }}"
  158. idrac_password: "{{ idrac_password }}"
  159. share_name: "{{ playbook_dir }}"
  160. command: "import"
  161. scp_file: "{{ temp_scp_path }}"
  162. scp_components: "ALL"
  163. shutdown_type: "Graceful"
  164. job_wait: true
  165. tags: TC_002
  166. - block:
  167. - name: Calling the test_prepare script
  168. vars:
  169. inventory_name: "{{ idrac_inventory_name }}"
  170. template_name: "{{ template_value }}"
  171. job_template_name: "{{ job_name }}"
  172. playbook_path: "{{ idrac_playbook_path }}"
  173. delete_status: true
  174. include_tasks: "{{ awx_script_path }}"
  175. - name: Execute validation script
  176. include_tasks: "{{ validation_script_path }}"
  177. tags: TC_002
  178. # Provisioning server with enterprise license where boot mode is UEFI, VD not present, firmware not updated using iDRAC
  179. - name: OMNIA_1.1_iDRAC_TC_003
  180. hosts: all
  181. connection: local
  182. vars_files:
  183. - test_vars/test_idrac_vars.yml
  184. - ../roles/webui_awx/vars/main.yml
  185. - ../input_params/base_vars.yml
  186. collections:
  187. - dellemc.openmanage
  188. - community.general
  189. tasks:
  190. - name: Set system profile value
  191. lineinfile:
  192. path: "{{ idrac_var_path }}"
  193. regexp: "{{ sysprofile }}"
  194. line: "{{ sysprofile_params3 }}"
  195. run_once: true
  196. tags: TC_003
  197. - name: Set boot mode in SCP file
  198. lineinfile:
  199. path: "{{ temp_scp_path }}"
  200. regexp: "{{ bootmode_attr_name }}"
  201. line: "{{ bootmode_regex1 }}"
  202. run_once: true
  203. tags: TC_003
  204. - name: Set system profile in SCP file
  205. lineinfile:
  206. path: "{{ temp_scp_path }}"
  207. regexp: "{{ sysprofile_attr_name }}"
  208. line: "{{ sysprofile_regex3 }}"
  209. run_once: true
  210. tags: TC_003
  211. - name: Get iDRAC volume details
  212. idrac_system_info:
  213. idrac_ip: "{{ inventory_hostname }}"
  214. idrac_user: "{{ idrac_username }}"
  215. idrac_password: "{{ idrac_password }}"
  216. register: vd_status
  217. tags: TC_003
  218. - name: Delete virtual disk
  219. dellemc_idrac_storage_volume:
  220. idrac_ip: "{{ inventory_hostname }}"
  221. idrac_user: "{{ idrac_username }}"
  222. idrac_password: "{{ idrac_password }}"
  223. state: "delete"
  224. volumes:
  225. - name: vd_name
  226. ignore_errors: true
  227. when: vd_status.system_info.VirtualDisk[0].Name == vd_name
  228. tags: TC_003
  229. - name: Set enterprise license status
  230. set_fact:
  231. enterprise_license: true
  232. datacenter_license: true
  233. run_once: true
  234. tags: TC_003
  235. - name: Import SCP configuration in SCP file
  236. idrac_server_config_profile:
  237. idrac_ip: "{{ inventory_hostname }}"
  238. idrac_user: "{{ idrac_username }}"
  239. idrac_password: "{{ idrac_password }}"
  240. share_name: "{{ playbook_dir }}"
  241. command: "import"
  242. scp_file: "{{ temp_scp_path }}"
  243. scp_components: "ALL"
  244. shutdown_type: "Graceful"
  245. job_wait: true
  246. tags: TC_003
  247. - block:
  248. - name: Calling the test_prepare script
  249. vars:
  250. inventory_name: "{{ idrac_inventory_name }}"
  251. template_name: "{{ template_value }}"
  252. job_template_name: "{{ job_name }}"
  253. playbook_path: "{{ idrac_playbook_path }}"
  254. delete_status: true
  255. include_tasks: "{{ awx_script_path }}"
  256. - name: Execute validation script
  257. include_tasks: "{{ validation_script_path }}"
  258. tags: TC_003
  259. # Provisioning server with enterprise license where boot mode is UEFI, VD not present, firmware updated using iDRAC
  260. - name: OMNIA_1.1_iDRAC_TC_004
  261. hosts: all
  262. connection: local
  263. vars_files:
  264. - test_vars/test_idrac_vars.yml
  265. - ../roles/webui_awx/vars/main.yml
  266. - ../input_params/base_vars.yml
  267. collections:
  268. - dellemc.openmanage
  269. - community.general
  270. tasks:
  271. - name: Set system profile value
  272. lineinfile:
  273. path: "{{ idrac_var_path }}"
  274. regexp: "{{ sysprofile }}"
  275. line: "{{ sysprofile_params4 }}"
  276. run_once: true
  277. tags: TC_004
  278. - name: Set boot mode in SCP file
  279. lineinfile:
  280. path: "{{ temp_scp_path }}"
  281. regexp: "{{ bootmode_attr_name }}"
  282. line: "{{ bootmode_regex1 }}"
  283. run_once: true
  284. tags: TC_004
  285. - name: Set system profile in SCP file
  286. lineinfile:
  287. path: "{{ temp_scp_path }}"
  288. regexp: "{{ sysprofile_attr_name }}"
  289. line: "{{ sysprofile_regex4 }}"
  290. run_once: true
  291. tags: TC_004
  292. - name: Get iDRAC volume details
  293. idrac_system_info:
  294. idrac_ip: "{{ inventory_hostname }}"
  295. idrac_user: "{{ idrac_username }}"
  296. idrac_password: "{{ idrac_password }}"
  297. register: vd_status
  298. tags: TC_004
  299. - name: Delete virtual disk
  300. dellemc_idrac_storage_volume:
  301. idrac_ip: "{{ inventory_hostname }}"
  302. idrac_user: "{{ idrac_username }}"
  303. idrac_password: "{{ idrac_password }}"
  304. state: "delete"
  305. volumes:
  306. - name: "{{ vd_name }}"
  307. ignore_errors: true
  308. when: vd_status.system_info.VirtualDisk[0].Name == vd_name
  309. tags: TC_004
  310. - name: Set enterprise license status
  311. set_fact:
  312. enterprise_license: true
  313. datacenter_license: true
  314. tags: TC_004
  315. - name: Import SCP configuration
  316. idrac_server_config_profile:
  317. idrac_ip: "{{ inventory_hostname }}"
  318. idrac_user: "{{ idrac_username }}"
  319. idrac_password: "{{ idrac_password }}"
  320. share_name: "{{ playbook_dir }}"
  321. command: "import"
  322. scp_file: "{{ temp_scp_path }}"
  323. scp_components: "ALL"
  324. shutdown_type: "Graceful"
  325. job_wait: true
  326. tags: TC_004
  327. - block:
  328. - name: Calling the test_prepare script
  329. vars:
  330. inventory_name: "{{ idrac_inventory_name }}"
  331. template_name: "{{ template_value }}"
  332. job_template_name: "{{ job_name }}"
  333. playbook_path: "{{ idrac_playbook_path }}"
  334. delete_status: true
  335. include_tasks: "{{ awx_script_path }}"
  336. - name: Execute validation script
  337. include_tasks: "{{ validation_script_path }}"
  338. tags: TC_004
  339. # Provisioning server with enterprise license where boot mode is BIOS, VD present, firmware updated, using iDRAC
  340. - name: OMNIA_1.1_iDRAC_TC_005
  341. hosts: all
  342. connection: local
  343. vars_files:
  344. - test_vars/test_idrac_vars.yml
  345. - ../roles/webui_awx/vars/main.yml
  346. - ../input_params/base_vars.yml
  347. collections:
  348. - dellemc.openmanage
  349. - community.general
  350. tasks:
  351. - name: Set system profile value
  352. lineinfile:
  353. path: "{{ idrac_var_path }}"
  354. regexp: "{{ sysprofile }}"
  355. line: "{{ sysprofile_params3 }}"
  356. run_once: true
  357. tags: TC_005
  358. - name: Set boot mode in SCP file
  359. lineinfile:
  360. path: "{{ temp_scp_path }}"
  361. regexp: "{{ bootmode_attr_name }}"
  362. line: "{{ bootmode_regex2 }}"
  363. run_once: true
  364. tags: TC_005
  365. - name: Set system profile in SCP file
  366. lineinfile:
  367. path: "{{ temp_scp_path }}"
  368. regexp: "{{ sysprofile_attr_name }}"
  369. line: "{{ sysprofile_regex3 }}"
  370. run_once: true
  371. tags: TC_005
  372. - name: Set enterprise license status
  373. set_fact:
  374. enterprise_license: true
  375. datacenter_license: true
  376. run_once: true
  377. tags: TC_005
  378. - name: Import SCP configuration
  379. idrac_server_config_profile:
  380. idrac_ip: "{{ inventory_hostname }}"
  381. idrac_user: "{{ idrac_username }}"
  382. idrac_password: "{{ idrac_password }}"
  383. share_name: "{{ playbook_dir }}"
  384. command: "import"
  385. scp_file: "{{ temp_scp_path }}"
  386. scp_components: "ALL"
  387. shutdown_type: "Graceful"
  388. job_wait: true
  389. tags: TC_005
  390. - block:
  391. - name: Calling the test_prepare script
  392. vars:
  393. inventory_name: "{{ idrac_inventory_name }}"
  394. template_name: "{{ template_value }}"
  395. job_template_name: "{{ job_name }}"
  396. playbook_path: "{{ idrac_playbook_path }}"
  397. delete_status: true
  398. include_tasks: "{{ awx_script_path }}"
  399. - name: Execute validation script
  400. include_tasks: "{{ validation_script_path }}"
  401. tags: TC_005
  402. # Provisioning server with enterprise license where boot mode is BIOS, VD present, firmware not updated, using iDRAC
  403. - name: OMNIA_1.1_iDRAC_TC_006
  404. hosts: all
  405. connection: local
  406. vars_files:
  407. - test_vars/test_idrac_vars.yml
  408. - ../roles/webui_awx/vars/main.yml
  409. - ../input_params/base_vars.yml
  410. collections:
  411. - dellemc.openmanage
  412. - community.general
  413. tasks:
  414. - name: Set system profile value
  415. lineinfile:
  416. path: "{{ idrac_var_path }}"
  417. regexp: "{{ sysprofile }}"
  418. line: "{{ sysprofile_params2 }}"
  419. run_once: true
  420. tags: TC_006
  421. - name: Set boot mode in file
  422. lineinfile:
  423. path: "{{ temp_scp_path }}"
  424. regexp: "{{ bootmode_attr_name }}"
  425. line: "{{ bootmode_regex2 }}"
  426. run_once: true
  427. tags: TC_006
  428. - name: Set system profile in SCP file
  429. lineinfile:
  430. path: "{{ temp_scp_path }}"
  431. regexp: 'Name="SysProfile"'
  432. line: "{{ sysprofile_regex2 }}"
  433. run_once: true
  434. tags: TC_006
  435. - name: Set enterprise license status
  436. set_fact:
  437. enterprise_license: true
  438. datacenter_license: true
  439. run_once: true
  440. tags: TC_006
  441. - name: Import SCP configuration
  442. idrac_server_config_profile:
  443. idrac_ip: "{{ inventory_hostname }}"
  444. idrac_user: "{{ idrac_username }}"
  445. idrac_password: "{{ idrac_password }}"
  446. share_name: "{{ playbook_dir }}"
  447. command: "import"
  448. scp_file: "{{ temp_scp_path }}"
  449. scp_components: "ALL"
  450. shutdown_type: "Graceful"
  451. job_wait: true
  452. tags: TC_006
  453. - block:
  454. - name: Calling the test_prepare script
  455. vars:
  456. inventory_name: "{{ idrac_inventory_name }}"
  457. template_name: "{{ template_value }}"
  458. job_template_name: "{{ job_name }}"
  459. playbook_path: "{{ idrac_playbook_path }}"
  460. delete_status: true
  461. include_tasks: "{{ awx_script_path }}"
  462. - name: Execute validation script
  463. include_tasks: "{{ validation_script_path }}"
  464. tags: TC_006
  465. # Provisioning server with enterprise license where boot mode is BIOS, VD not present, firmware not updated and re-provision any server using iDRAC
  466. - name: OMNIA_1.1_iDRAC_TC_007
  467. hosts: all
  468. connection: local
  469. vars_files:
  470. - test_vars/test_idrac_vars.yml
  471. - ../roles/webui_awx/vars/main.yml
  472. - ../input_params/base_vars.yml
  473. collections:
  474. - dellemc.openmanage
  475. - community.general
  476. tasks:
  477. - name: Set system profile value
  478. lineinfile:
  479. path: "{{ idrac_var_path }}"
  480. regexp: "{{ sysprofile }}"
  481. line: "{{ sysprofile_params4 }}"
  482. run_once: true
  483. tags: TC_007
  484. - name: Set boot mode in SCP file
  485. lineinfile:
  486. path: "{{ temp_scp_path }}"
  487. regexp: "{{ bootmode_attr_name }}"
  488. line: "{{ bootmode_regex2 }}"
  489. run_once: true
  490. tags: TC_007
  491. - name: Set system profile in SCP file
  492. lineinfile:
  493. path: "{{ temp_scp_path }}"
  494. regexp: "{{ sysprofile_attr_name }}"
  495. line: "{{ sysprofile_regex4 }}"
  496. run_once: true
  497. tags: TC_007
  498. - name: Set enterprise license status
  499. set_fact:
  500. enterprise_license: true
  501. datacenter_license: true
  502. run_once: true
  503. tags: TC_007
  504. - name: Delete virtual disk
  505. dellemc_idrac_storage_volume:
  506. idrac_ip: "{{ inventory_hostname }}"
  507. idrac_user: "{{ idrac_username }}"
  508. idrac_password: "{{ idrac_password }}"
  509. state: "delete"
  510. volumes:
  511. - name: "omnia_vd"
  512. ignore_errors: true
  513. tags: TC_007
  514. - name: Import SCP configuration
  515. idrac_server_config_profile:
  516. idrac_ip: "{{ inventory_hostname }}"
  517. idrac_user: "{{ idrac_username }}"
  518. idrac_password: "{{ idrac_password }}"
  519. share_name: "{{ playbook_dir }}"
  520. command: "import"
  521. scp_file: "{{ temp_scp_path }}"
  522. scp_components: "ALL"
  523. shutdown_type: "Graceful"
  524. job_wait: true
  525. tags: TC_007
  526. - block:
  527. - name: Calling the test_prepare script
  528. vars:
  529. inventory_name: "{{ idrac_inventory_name }}"
  530. template_name: "{{ template_value }}"
  531. job_template_name: "{{ job_name }}"
  532. playbook_path: "{{ idrac_playbook_path }}"
  533. delete_status: true
  534. include_tasks: "{{ awx_script_path }}"
  535. - name: Execute validation script
  536. include_tasks: "{{ validation_script_path }}"
  537. tags: TC_007
  538. # Provisioning server with enterprise license where boot mode is BIOS, VD not present, firmware updated using iDRAC
  539. # Re-provision of all servers using iDRAC
  540. - name: OMNIA_1.1_iDRAC_TC_008
  541. hosts: all
  542. connection: local
  543. vars_files:
  544. - test_vars/test_idrac_vars.yml
  545. - ../roles/webui_awx/vars/main.yml
  546. - ../input_params/base_vars.yml
  547. collections:
  548. - dellemc.openmanage
  549. - community.general
  550. tasks:
  551. - name: Set system profile value
  552. lineinfile:
  553. path: "{{ idrac_var_path }}"
  554. regexp: "{{ sysprofile }}"
  555. line: "{{ sysprofile_params1 }}"
  556. run_once: true
  557. tags: TC_008
  558. - name: Set boot mode in SCP file
  559. lineinfile:
  560. path: "{{ temp_scp_path }}"
  561. regexp: "{{ bootmode_attr_name }}"
  562. line: "{{ bootmode_regex2 }}"
  563. run_once: true
  564. tags: TC_008
  565. - name: Set system profile in SCP file
  566. lineinfile:
  567. path: "{{ temp_scp_path }}"
  568. regexp: "{{ sysprofile_attr_name }}"
  569. line: "{{ sysprofile_regex1 }}"
  570. run_once: true
  571. tags: TC_008
  572. - name: Set enterprise license status
  573. set_fact:
  574. enterprise_license: true
  575. datacenter_license: true
  576. run_once: true
  577. tags: TC_008
  578. - name: Delete virtual disk
  579. dellemc_idrac_storage_volume:
  580. idrac_ip: "{{ inventory_hostname }}"
  581. idrac_user: "{{ idrac_username }}"
  582. idrac_password: "{{ idrac_password }}"
  583. state: "delete"
  584. volumes:
  585. - name: "omnia_vd"
  586. ignore_errors: true
  587. tags: TC_008
  588. - name: Import SCP configuration in file
  589. idrac_server_config_profile:
  590. idrac_ip: "{{ inventory_hostname }}"
  591. idrac_user: "{{ idrac_username }}"
  592. idrac_password: "{{ idrac_password }}"
  593. share_name: "{{ playbook_dir }}"
  594. command: "import"
  595. scp_file: "{{ temp_scp_path }}"
  596. scp_components: "ALL"
  597. shutdown_type: "Graceful"
  598. job_wait: true
  599. tags: TC_008
  600. - block:
  601. - name: Calling the test_prepare script
  602. vars:
  603. inventory_name: "{{ idrac_inventory_name }}"
  604. template_name: "{{ template_value }}"
  605. job_template_name: "{{ job_name }}"
  606. playbook_path: "{{ idrac_playbook_path }}"
  607. delete_status: true
  608. include_tasks: "{{ awx_script_path }}"
  609. - name: Execute validation script
  610. include_tasks: "{{ validation_script_path }}"
  611. tags: TC_008
  612. # Provisioning server with basic license where boot mode is UEFI, VD present, firmware updated, SNMP is already configured using Cobbler
  613. - name: OMNIA_1.1_iDRAC_TC_009
  614. hosts: all
  615. connection: local
  616. vars_files:
  617. - test_vars/test_idrac_vars.yml
  618. - ../roles/webui_awx/vars/main.yml
  619. - ../input_params/base_vars.yml
  620. collections:
  621. - dellemc.openmanage
  622. - community.general
  623. tasks:
  624. - name: Set system profile value
  625. lineinfile:
  626. path: "{{ idrac_var_path }}"
  627. regexp: "{{ sysprofile }}"
  628. line: "{{ sysprofile_params4 }}"
  629. run_once: true
  630. tags: TC_009
  631. - name: Set Boot mode in file
  632. lineinfile:
  633. path: "{{ temp_scp_path }}"
  634. regexp: "{{ bootmode_attr_name }}"
  635. line: "{{ bootmode_regex1 }}"
  636. run_once: true
  637. tags: TC_009
  638. - name: Set system profile in SCP file
  639. lineinfile:
  640. path: "{{ temp_scp_path }}"
  641. regexp: "{{ sysprofile_attr_name }}"
  642. line: "{{ sysprofile_regex4 }}"
  643. run_once: true
  644. tags: TC_009
  645. - name: Set SNMP configuration in file
  646. lineinfile:
  647. path: "{{ temp_scp_path }}"
  648. regexp: "{{ snmp_attr_name }}"
  649. line: "{{ snmp_regex }}"
  650. run_once: true
  651. tags: TC_009
  652. - name: Set enterprise license status
  653. set_fact:
  654. enterprise_license: false
  655. datacenter_license: false
  656. run_once: true
  657. tags: TC_009
  658. - name: Import SCP configuration
  659. idrac_server_config_profile:
  660. idrac_ip: "{{ inventory_hostname }}"
  661. idrac_user: "{{ idrac_username }}"
  662. idrac_password: "{{ idrac_password }}"
  663. share_name: "{{ playbook_dir }}"
  664. command: "import"
  665. scp_file: "{{ temp_scp_path }}"
  666. scp_components: "ALL"
  667. shutdown_type: "Graceful"
  668. job_wait: true
  669. tags: TC_009
  670. - block:
  671. - name: Calling the test_prepare script
  672. vars:
  673. inventory_name: "{{ idrac_inventory_name }}"
  674. template_name: "{{ template_value }}"
  675. job_template_name: "{{ job_name }}"
  676. playbook_path: "{{ idrac_playbook_path }}"
  677. delete_status: true
  678. include_tasks: "{{ awx_script_path }}"
  679. - name: Execute validation script
  680. include_tasks: "{{ validation_script_path }}"
  681. tags: TC_009
  682. # Provisioning server with basic license where boot mode is UEFI, VD present, firmware not updated, SNMP is not configured using cobbler
  683. - name: OMNIA_1.1_iDRAC_TC_010
  684. hosts: all
  685. connection: local
  686. vars_files:
  687. - test_vars/test_idrac_vars.yml
  688. - ../roles/webui_awx/vars/main.yml
  689. - ../input_params/base_vars.yml
  690. collections:
  691. - dellemc.openmanage
  692. - community.general
  693. tasks:
  694. - name: Set system profile value
  695. lineinfile:
  696. path: "{{ idrac_var_path }}"
  697. regexp: "{{ sysprofile }}"
  698. line: "{{ sysprofile_params1 }}"
  699. run_once: true
  700. tags: TC_010
  701. - name: Set boot mode in SCP file
  702. lineinfile:
  703. path: "{{ temp_scp_path }}"
  704. regexp: "{{ bootmode_attr_name }}"
  705. line: "{{ bootmode_regex1 }}"
  706. run_once: true
  707. tags: TC_010
  708. - name: Set system profile in SCP file
  709. lineinfile:
  710. path: "{{ temp_scp_path }}"
  711. regexp: "{{ sysprofile_attr_name }}"
  712. line: "{{ sysprofile_regex1 }}"
  713. run_once: true
  714. tags: TC_010
  715. - name: Set SNMP configuration in SCP file
  716. lineinfile:
  717. path: "{{ temp_scp_path }}"
  718. regexp: "{{ snmp_attr_name }}"
  719. line: "{{ snmp_regex }}"
  720. run_once: true
  721. tags: TC_010
  722. - name: Set enterprise license status
  723. set_fact:
  724. enterprise_license: false
  725. datacenter_license: false
  726. run_once: true
  727. tags: TC_010
  728. - name: Import SCP configuration
  729. idrac_server_config_profile:
  730. idrac_ip: "{{ inventory_hostname }}"
  731. idrac_user: "{{ idrac_username }}"
  732. idrac_password: "{{ idrac_password }}"
  733. share_name: "{{ playbook_dir }}"
  734. command: "import"
  735. scp_file: "{{ temp_scp_path }}"
  736. scp_components: "ALL"
  737. shutdown_type: "Graceful"
  738. job_wait: true
  739. tags: TC_010
  740. - block:
  741. - name: Calling the test_prepare script
  742. vars:
  743. inventory_name: "{{ idrac_inventory_name }}"
  744. template_name: "{{ template_value }}"
  745. job_template_name: "{{ job_name }}"
  746. playbook_path: "{{ idrac_playbook_path }}"
  747. delete_status: true
  748. include_tasks: "{{ awx_script_path }}"
  749. - name: Execute validation script
  750. include_tasks: "{{ validation_script_path }}"
  751. tags: TC_010
  752. # Provisioning server with basic license where boot mode is UEFI, VD not present, firmware not updated, using Cobbler
  753. - name: OMNIA_1.1_iDRAC_TC_011
  754. hosts: all
  755. connection: local
  756. vars_files:
  757. - test_vars/test_idrac_vars.yml
  758. - ../roles/webui_awx/vars/main.yml
  759. - ../input_params/base_vars.yml
  760. collections:
  761. - dellemc.openmanage
  762. - community.general
  763. tasks:
  764. - name: Set system profile value
  765. lineinfile:
  766. path: "{{ idrac_var_path }}"
  767. regexp: "{{ sysprofile }}"
  768. line: "{{ sysprofile_params4 }}"
  769. run_once: true
  770. tags: TC_011
  771. - name: Set boot mode in SCP file
  772. lineinfile:
  773. path: "{{ temp_scp_path }}"
  774. regexp: "{{ bootmode_attr_name }}"
  775. line: "{{ bootmode_regex1 }}"
  776. run_once: true
  777. tags: TC_011
  778. - name: Set system profile in SCP file
  779. lineinfile:
  780. path: "{{ temp_scp_path }}"
  781. regexp: "{{ sysprofile_attr_name }}"
  782. line: "{{ sysprofile_regex4 }}"
  783. run_once: true
  784. tags: TC_011
  785. - name: Set SNMP configuration in SCP file
  786. lineinfile:
  787. path: "{{ temp_scp_path }}"
  788. regexp: "{{ snmp_attr_name }}"
  789. line: "{{ snmp_regex }}"
  790. run_once: true
  791. tags: TC_011
  792. - name: Delete virtual disk
  793. dellemc_idrac_storage_volume:
  794. idrac_ip: "{{ inventory_hostname }}"
  795. idrac_user: "{{ idrac_username }}"
  796. idrac_password: "{{ idrac_password }}"
  797. state: "delete"
  798. volumes:
  799. - name: "omnia_vd"
  800. ignore_errors: true
  801. tags: TC_011
  802. - name: Set enterprise license status
  803. set_fact:
  804. enterprise_license: false
  805. datacenter_license: false
  806. run_once: true
  807. tags: TC_011
  808. - name: Import SCP configuration
  809. idrac_server_config_profile:
  810. idrac_ip: "{{ inventory_hostname }}"
  811. idrac_user: "{{ idrac_username }}"
  812. idrac_password: "{{ idrac_password }}"
  813. share_name: "{{ playbook_dir }}"
  814. command: "import"
  815. scp_file: "{{ temp_scp_path }}"
  816. scp_components: "ALL"
  817. shutdown_type: "Graceful"
  818. job_wait: true
  819. tags: TC_011
  820. - block:
  821. - name: Calling the test_prepare script
  822. vars:
  823. inventory_name: "{{ idrac_inventory_name }}"
  824. template_name: "{{ template_value }}"
  825. job_template_name: "{{ job_name }}"
  826. playbook_path: "{{ idrac_playbook_path }}"
  827. delete_status: true
  828. include_tasks: "{{ awx_script_path }}"
  829. - name: Execute validation script
  830. include_tasks: "{{ validation_script_path }}"
  831. tags: TC_011
  832. # Provisioning server with basic license where boot mode is UEFI, VD not present, firmware updated, PXE device is Enabled using Cobbler
  833. - name: OMNIA_1.1_iDRAC_TC_012
  834. hosts: all
  835. connection: local
  836. vars_files:
  837. - test_vars/test_idrac_vars.yml
  838. - ../roles/webui_awx/vars/main.yml
  839. - ../input_params/base_vars.yml
  840. collections:
  841. - dellemc.openmanage
  842. - community.general
  843. tasks:
  844. - name: Set system profile value
  845. lineinfile:
  846. path: "{{ idrac_var_path }}"
  847. regexp: "{{ sysprofile }}"
  848. line: "{{ sysprofile_params3 }}"
  849. run_once: true
  850. tags: TC_012
  851. - name: Set boot mode in SCP file
  852. lineinfile:
  853. path: "{{ temp_scp_path }}"
  854. regexp: "{{ bootmode_attr_name }}"
  855. line: "{{ bootmode_regex1 }}"
  856. run_once: true
  857. tags: TC_012
  858. - name: Set system profile in SCP file
  859. lineinfile:
  860. path: "{{ temp_scp_path }}"
  861. regexp: "{{ sysprofile_attr_name }}"
  862. line: "{{ sysprofile_regex3 }}"
  863. run_once: true
  864. tags: TC_012
  865. - name: Set SNMP configuration in SCP file
  866. lineinfile:
  867. path: "{{ temp_scp_path }}"
  868. regexp: "{{ snmp_attr_name }}"
  869. line: "{{ snmp_regex }}"
  870. run_once: true
  871. tags: TC_012
  872. - name: Delete virtual disk
  873. dellemc_idrac_storage_volume:
  874. idrac_ip: "{{ inventory_hostname }}"
  875. idrac_user: "{{ idrac_username }}"
  876. idrac_password: "{{ idrac_password }}"
  877. state: "delete"
  878. volumes:
  879. - name: "omnia_vd"
  880. ignore_errors: true
  881. tags: TC_012
  882. - name: Set enterprise license status
  883. set_fact:
  884. enterprise_license: false
  885. datacenter_license: false
  886. run_once: true
  887. tags: TC_012
  888. - name: Import SCP configuration
  889. idrac_server_config_profile:
  890. idrac_ip: "{{ inventory_hostname }}"
  891. idrac_user: "{{ idrac_username }}"
  892. idrac_password: "{{ idrac_password }}"
  893. share_name: "{{ playbook_dir }}"
  894. command: "import"
  895. scp_file: "{{ temp_scp_path }}"
  896. scp_components: "ALL"
  897. shutdown_type: "Graceful"
  898. job_wait: true
  899. tags: TC_012
  900. - block:
  901. - name: Calling the test_prepare script
  902. vars:
  903. inventory_name: "{{ idrac_inventory_name }}"
  904. template_name: "{{ template_value }}"
  905. job_template_name: "{{ job_name }}"
  906. playbook_path: "{{ idrac_playbook_path }}"
  907. delete_status: true
  908. include_tasks: "{{ awx_script_path }}"
  909. - name: Execute validation script
  910. include_tasks: "{{ validation_script_path }}"
  911. tags: TC_012
  912. # Provisioning server with basic license where boot mode is BIOS, VD present, firmware updated, PXE device is disabled using cobbler
  913. - name: OMNIA_1.1_iDRAC_TC_013
  914. hosts: all
  915. connection: local
  916. vars_files:
  917. - test_vars/test_idrac_vars.yml
  918. - ../roles/webui_awx/vars/main.yml
  919. - ../input_params/base_vars.yml
  920. collections:
  921. - dellemc.openmanage
  922. - community.general
  923. tasks:
  924. - name: Set system profile value
  925. lineinfile:
  926. path: "{{ idrac_var_path }}"
  927. regexp: "{{ sysprofile }}"
  928. line: "{{ sysprofile_params3 }}"
  929. run_once: true
  930. tags: TC_013
  931. - name: Set boot mode in SCP file
  932. lineinfile:
  933. path: "{{ temp_scp_path }}"
  934. regexp: "{{ bootmode_attr_name }}"
  935. line: "{{ bootmode_regex2 }}"
  936. run_once: true
  937. tags: TC_013
  938. - name: Set system profile in SCP file
  939. lineinfile:
  940. path: "{{ temp_scp_path }}"
  941. regexp: "{{ sysprofile_attr_name }}"
  942. line: "{{ sysprofile_regex3 }}"
  943. run_once: true
  944. tags: TC_013
  945. - name: Set SNMP configuration in SCP file
  946. lineinfile:
  947. path: "{{ temp_scp_path }}"
  948. regexp: "{{ snmp_attr_name }}"
  949. line: "{{ snmp_regex }}"
  950. run_once: true
  951. tags: TC_013
  952. - name: Set enterprise license status
  953. set_fact:
  954. enterprise_license: false
  955. datacenter_license: false
  956. run_once: true
  957. tags: TC_013
  958. - name: Import SCP configuration
  959. idrac_server_config_profile:
  960. idrac_ip: "{{ inventory_hostname }}"
  961. idrac_user: "{{ idrac_username }}"
  962. idrac_password: "{{ idrac_password }}"
  963. share_name: "{{ playbook_dir }}"
  964. command: "import"
  965. scp_file: "{{ temp_scp_path }}"
  966. scp_components: "ALL"
  967. shutdown_type: "Graceful"
  968. job_wait: true
  969. tags: TC_013
  970. - block:
  971. - name: Calling the test_prepare script
  972. vars:
  973. inventory_name: "{{ idrac_inventory_name }}"
  974. template_name: "{{ template_value }}"
  975. job_template_name: "{{ job_name }}"
  976. playbook_path: "{{ idrac_playbook_path }}"
  977. delete_status: true
  978. include_tasks: "{{ awx_script_path }}"
  979. - name: Execute validation script
  980. include_tasks: "{{ validation_script_path }}"
  981. tags: TC_013
  982. # Provisioning server with basic license where boot mode is BIOS, VD present, firmware not updated using cobbler
  983. - name: OMNIA_1.1_iDRAC_TC_014
  984. hosts: all
  985. connection: local
  986. vars_files:
  987. - test_vars/test_idrac_vars.yml
  988. - ../roles/webui_awx/vars/main.yml
  989. - ../input_params/base_vars.yml
  990. collections:
  991. - dellemc.openmanage
  992. - community.general
  993. tasks:
  994. - name: Set system profile value
  995. lineinfile:
  996. path: "{{ idrac_var_path }}"
  997. regexp: "{{ sysprofile }}"
  998. line: "{{ sysprofile_params3 }}"
  999. run_once: true
  1000. tags: TC_014
  1001. - name: Set boot mode in SCP file
  1002. lineinfile:
  1003. path: "{{ temp_scp_path }}"
  1004. regexp: "{{ bootmode_attr_name }}"
  1005. line: "{{ bootmode_regex2 }}"
  1006. run_once: true
  1007. tags: TC_014
  1008. - name: Set system profile
  1009. lineinfile:
  1010. path: "{{ temp_scp_path }}"
  1011. regexp: "{{ sysprofile_attr_name }}"
  1012. line: "{{ sysprofile_regex3 }}"
  1013. run_once: true
  1014. tags: TC_014
  1015. - name: Set SNMP configuration in SCP file
  1016. lineinfile:
  1017. path: "{{ temp_scp_path }}"
  1018. regexp: "{{ snmp_attr_name }}"
  1019. line: "{{ snmp_regex }}"
  1020. run_once: true
  1021. tags: TC_014
  1022. - name: Set enterprise license status
  1023. set_fact:
  1024. enterprise_license: false
  1025. datacenter_license: false
  1026. run_once: true
  1027. tags: TC_014
  1028. - name: Import SCP configuration
  1029. idrac_server_config_profile:
  1030. idrac_ip: "{{ inventory_hostname }}"
  1031. idrac_user: "{{ idrac_username }}"
  1032. idrac_password: "{{ idrac_password }}"
  1033. share_name: "{{ playbook_dir }}"
  1034. command: "import"
  1035. scp_file: "{{ temp_scp_path }}"
  1036. scp_components: "ALL"
  1037. shutdown_type: "Graceful"
  1038. job_wait: true
  1039. tags: TC_014
  1040. - block:
  1041. - name: Calling the test_prepare script
  1042. vars:
  1043. inventory_name: "{{ idrac_inventory_name }}"
  1044. template_name: "{{ template_value }}"
  1045. job_template_name: "{{ job_name }}"
  1046. playbook_path: "{{ idrac_playbook_path }}"
  1047. delete_status: true
  1048. include_tasks: "{{ awx_script_path }}"
  1049. - name: Execute validation script
  1050. include_tasks: "{{ validation_script_path }}"
  1051. tags: TC_014
  1052. # Provisioning server with basic license where boot mode is BIOS, VD not present, firmware not updated, redfish is disabled, LC is not busy using cobbler
  1053. - name: OMNIA_1.1_iDRAC_TC_015
  1054. hosts: all
  1055. connection: local
  1056. vars_files:
  1057. - test_vars/test_idrac_vars.yml
  1058. - ../roles/webui_awx/vars/main.yml
  1059. - ../input_params/base_vars.yml
  1060. collections:
  1061. - dellemc.openmanage
  1062. - community.general
  1063. tasks:
  1064. - name: Set system profile value
  1065. lineinfile:
  1066. path: "{{ idrac_var_path }}"
  1067. regexp: "{{ sysprofile }}"
  1068. line: "{{ sysprofile_params3 }}"
  1069. run_once: true
  1070. tags: TC_015
  1071. - name: Set boot mode in SCP file
  1072. lineinfile:
  1073. path: "{{ temp_scp_path }}"
  1074. regexp: "{{ bootmode_attr_name }}"
  1075. line: "{{ bootmode_regex2 }}"
  1076. run_once: true
  1077. tags: TC_015
  1078. - name: Set system profile in SCP file
  1079. lineinfile:
  1080. path: "{{ temp_scp_path }}"
  1081. regexp: "{{ sysprofile_attr_name }}"
  1082. line: "{{ sysprofile_regex3 }}"
  1083. run_once: true
  1084. tags: TC_015
  1085. - name: Set SNMP configuration in SCP file
  1086. lineinfile:
  1087. path: "{{ temp_scp_path }}"
  1088. regexp: "{{ snmp_attr_name }}"
  1089. line: "{{ snmp_regex }}"
  1090. run_once: true
  1091. tags: TC_015
  1092. - name: Delete virtual disk
  1093. dellemc_idrac_storage_volume:
  1094. idrac_ip: "{{ inventory_hostname }}"
  1095. idrac_user: "{{ idrac_username }}"
  1096. idrac_password: "{{ idrac_password }}"
  1097. state: "delete"
  1098. volumes:
  1099. - name: "omnia_vd"
  1100. ignore_errors: true
  1101. tags: TC_015
  1102. - name: Set enterprise license status
  1103. set_fact:
  1104. enterprise_license: false
  1105. datacenter_license: false
  1106. run_once: true
  1107. tags: TC_015
  1108. - name: Import SCP configuration
  1109. idrac_server_config_profile:
  1110. idrac_ip: "{{ inventory_hostname }}"
  1111. idrac_user: "{{ idrac_username }}"
  1112. idrac_password: "{{ idrac_password }}"
  1113. share_name: "{{ playbook_dir }}"
  1114. command: "import"
  1115. scp_file: "{{ temp_scp_path }}"
  1116. scp_components: "ALL"
  1117. shutdown_type: "Graceful"
  1118. job_wait: true
  1119. tags: TC_015
  1120. - block:
  1121. - name: Calling the test_prepare script
  1122. vars:
  1123. inventory_name: "{{ idrac_inventory_name }}"
  1124. template_name: "{{ template_value }}"
  1125. job_template_name: "{{ job_name }}"
  1126. playbook_path: "{{ idrac_playbook_path }}"
  1127. delete_status: true
  1128. include_tasks: "{{ awx_script_path }}"
  1129. - name: Execute validation script
  1130. include_tasks: "{{ validation_script_path }}"
  1131. tags: TC_015
  1132. # 1. Provisioning server with basic license where boot mode is BIOS, VD not present, firmware updated, LC is busy using cobbler
  1133. # 2. Re-provision any server using Cobbler
  1134. - name: OMNIA_1.1_iDRAC_TC_016
  1135. hosts: all
  1136. connection: local
  1137. vars_files:
  1138. - test_vars/test_idrac_vars.yml
  1139. - ../roles/webui_awx/vars/main.yml
  1140. - ../input_params/base_vars.yml
  1141. collections:
  1142. - dellemc.openmanage
  1143. - community.general
  1144. tasks:
  1145. - name: Set system profile value
  1146. lineinfile:
  1147. path: "{{ idrac_var_path }}"
  1148. regexp: "{{ sysprofile }}"
  1149. line: "{{ sysprofile_params1 }}"
  1150. run_once: true
  1151. tags: TC_016
  1152. - name: Set boot mode in SCP file
  1153. lineinfile:
  1154. path: "{{ temp_scp_path }}"
  1155. regexp: "{{ bootmode_attr_name }}"
  1156. line: "{{ bootmode_regex2 }}"
  1157. run_once: true
  1158. tags: TC_016
  1159. - name: Set system profile in SCP file
  1160. lineinfile:
  1161. path: "{{ temp_scp_path }}"
  1162. regexp: "{{ sysprofile_attr_name }}"
  1163. line: "{{ sysprofile_regex1 }}"
  1164. run_once: true
  1165. tags: TC_0016
  1166. - name: Set SNMP configuration in SCP file
  1167. lineinfile:
  1168. path: "{{ temp_scp_path }}"
  1169. regexp: "{{ snmp_attr_name }}"
  1170. line: "{{ snmp_regex }}"
  1171. run_once: true
  1172. tags: TC_016
  1173. - name: Delete virtual disk
  1174. dellemc_idrac_storage_volume:
  1175. idrac_ip: "{{ inventory_hostname }}"
  1176. idrac_user: "{{ idrac_username }}"
  1177. idrac_password: "{{ idrac_password }}"
  1178. state: "delete"
  1179. volumes:
  1180. - name: "omnia_vd"
  1181. ignore_errors: true
  1182. tags: TC_016
  1183. - name: Set enterprise license status
  1184. set_fact:
  1185. enterprise_license: false
  1186. datacenter_license: false
  1187. run_once: true
  1188. tags: TC_016
  1189. - name: Import SCP configuration
  1190. idrac_server_config_profile:
  1191. idrac_ip: "{{ inventory_hostname }}"
  1192. idrac_user: "{{ idrac_username }}"
  1193. idrac_password: "{{ idrac_password }}"
  1194. share_name: "{{ playbook_dir }}"
  1195. command: "import"
  1196. scp_file: "{{ temp_scp_path }}"
  1197. scp_components: "ALL"
  1198. shutdown_type: "Graceful"
  1199. job_wait: true
  1200. tags: TC_016
  1201. - block:
  1202. - name: Calling the test_prepare script
  1203. vars:
  1204. inventory_name: "{{ idrac_inventory_name }}"
  1205. template_name: "{{ template_value }}"
  1206. job_template_name: "{{ job_name }}"
  1207. playbook_path: "{{ idrac_playbook_path }}"
  1208. delete_status: true
  1209. include_tasks: "{{ awx_script_path }}"
  1210. - name: Execute validation script
  1211. include_tasks: "{{ validation_script_path }}"
  1212. tags: TC_016