Debian Codegraph @

ansible_collections/dellemc/openmanage/roles/redfish_storage_volume/molecule/initialization-10603/prepare.yml

raw symbols SCIP
1 - name: Prepare file
2 hosts: all
3 gather_facts: false
4 tasks:
5 - name: Making sure Server is powered on and clear all job
6 ansible.builtin.include_tasks:
7 file: ../helper/common/power_on_idrac_and_clear_all_job.yaml
8
9 - name: Fetching data from iDRAC for PERC
10 ansible.builtin.include_tasks:
11 file: ../__extract_storage.yml
12 vars:
13 redfish_storage_volume_search_in_name: 'PERC'
14 redfish_storage_volume_raid: "RAID0"
15
16 - name: Setting PERC controller_id
17 ansible.builtin.set_fact:
18 redfish_storage_volume_perc_raid_controller_id:
19 "{{ redfish_storage_volume_controller_id }}"
20 when: redfish_storage_volume_controller_id != ""
21
22 - name: "Checking minimum number of drives for RAID0"
23 ansible.builtin.debug:
24 msg: >-
25 Minimum number of required drives: 1, current:
26 {{ redfish_storage_volume_drive_list | length }}
27 when: redfish_storage_volume_drive_list | length < 1
28
29 - name: Pre-req Create a volume.
30 ansible.builtin.import_role:
31 name: dellemc.openmanage.redfish_storage_volume
32 vars:
33 hostname: "{{ lookup('env', 'IDRAC_IP') }}"
34 username: "{{ lookup('env', 'IDRAC_USER') }}"
35 password: "{{ lookup('env', 'IDRAC_PASSWORD') }}"
36 validate_certs: false
37 state: present
38 raid_type: "RAID0"
39 name: "VD_PERC" # noqa: var-naming[no-reserved]
40 controller_id: "{{ redfish_storage_volume_perc_raid_controller_id }}"
41 drives: "{{ redfish_storage_volume_drive_list[:1] }}"
42 job_wait: true
43 check_mode: false