Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/redfish/storage/redfish_storage_volume.yml

raw symbols SCIP
1 ---
2 - name: "Redfish Storage Volume - Ansible Module"
3 hosts: redfish_hosts
4 gather_facts: false
5 vars:
6 retries_count: 15
7 polling_interval: 5
8
9 tasks:
10 - name: Create a volume with supported options.
11 dellemc.openmanage.redfish_storage_volume:
12 baseuri: "{{ baseuri }}"
13 username: "{{ username }}"
14 password: "{{ password }}"
15 ca_path: "/path/to/ca_cert.pem"
16 state: "present"
17 volume_type: "Mirrored"
18 name: "VD0"
19 controller_id: "RAID.Slot.1-1"
20 drives:
21 - Disk.Bay.5:Enclosure.Internal.0-1:RAID.Slot.1-1
22 - Disk.Bay.6:Enclosure.Internal.0-1:RAID.Slot.1-1
23 block_size_bytes: 512
24 capacity_bytes: 299439751168
25 optimum_io_size_bytes: 65536
26 encryption_types: NativeDriveEncryption
27 encrypted: true
28 register: result
29 tags:
30 - create_volume1
31 delegate_to: localhost
32
33 - name: Create a volume with minimum options.
34 dellemc.openmanage.redfish_storage_volume:
35 baseuri: "{{ baseuri }}"
36 username: "{{ username }}"
37 password: "{{ password }}"
38 ca_path: "/path/to/ca_cert.pem"
39 state: "present"
40 controller_id: "RAID.Slot.1-1"
41 volume_type: "NonRedundant"
42 drives:
43 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
44 tags:
45 - create_volume2
46 delegate_to: localhost
47
48 - name: Create a RAID6 volume.
49 dellemc.openmanage.redfish_storage_volume:
50 baseuri: "{{ baseuri }}"
51 username: "{{ username }}"
52 password: "{{ password }}"
53 ca_path: "/path/to/ca_cert.pem"
54 state: "present"
55 controller_id: "RAID.Slot.1-1"
56 raid_type: "RAID6"
57 drives:
58 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
59 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-2
60 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-3
61 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-4
62 tags:
63 - create_raid6
64 delegate_to: localhost
65
66 - name: Create a RAID60 volume.
67 dellemc.openmanage.redfish_storage_volume:
68 baseuri: "{{ baseuri }}"
69 username: "{{ username }}"
70 password: "{{ password }}"
71 ca_path: "/path/to/ca_cert.pem"
72 state: "present"
73 controller_id: "RAID.Slot.1-1"
74 raid_type: "RAID60"
75 drives:
76 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
77 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-2
78 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-3
79 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-4
80 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-5
81 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-6
82 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-7
83 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-8
84 tags:
85 - create_raid60
86 delegate_to: localhost
87
88 - name: Create a RAID0 on PERC controller on reset
89 dellemc.openmanage.redfish_storage_volume:
90 baseuri: "192.168.0.1"
91 username: "username"
92 password: "password"
93 state: "present"
94 controller_id: "RAID.Slot.1-1"
95 raid_type: "RAID0"
96 drives:
97 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
98 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-2
99 apply_time: OnReset
100 tags:
101 - create_raid0_with_onreset
102 delegate_to: localhost
103
104 - name: Create a RAID0 on BOSS controller with restart
105 dellemc.openmanage.redfish_storage_volume:
106 baseuri: "192.168.0.1"
107 username: "username"
108 password: "password"
109 state: "present"
110 controller_id: "RAID.Slot.1-1"
111 raid_type: "RAID0"
112 drives:
113 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
114 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-2
115 apply_time: OnReset
116 reboot_server: true
117 tags:
118 - create_raid0_boss_with_onreset
119 delegate_to: localhost
120
121 - name: Create a RAID0 on BOSS controller with force restart
122 dellemc.openmanage.redfish_storage_volume:
123 baseuri: "192.168.0.1"
124 username: "username"
125 password: "password"
126 state: "present"
127 controller_id: "RAID.Slot.1-1"
128 raid_type: "RAID0"
129 drives:
130 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1
131 - Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-2
132 reboot_server: true
133 force_reboot: true
134 tags:
135 - create_raid0_boss_with_onreset_force
136 delegate_to: localhost
137
138 - name: Modify a volume's encryption type settings.
139 dellemc.openmanage.redfish_storage_volume:
140 baseuri: "{{ baseuri }}"
141 username: "{{ username }}"
142 password: "{{ password }}"
143 ca_path: "/path/to/ca_cert.pem"
144 state: "present"
145 volume_id: "Disk.Virtual.5:RAID.Slot.1-1"
146 encryption_types: "ControllerAssisted"
147 encrypted: true
148 tags:
149 - modify_volume
150 delegate_to: localhost
151
152 - name: Initialize an existing volume.
153 dellemc.openmanage.redfish_storage_volume:
154 baseuri: "{{ baseuri }}"
155 username: "{{ username }}"
156 password: "{{ password }}"
157 ca_path: "/path/to/ca_cert.pem"
158 command: "initialize"
159 volume_id: "Disk.Virtual.5:RAID.Slot.1-1"
160 initialize_type: "Slow"
161 tags:
162 - initialize_volume
163 delegate_to: localhost
164
165 - name: Delete an existing volume.
166 dellemc.openmanage.redfish_storage_volume:
167 baseuri: "{{ baseuri }}"
168 username: "{{ username }}"
169 password: "{{ password }}"
170 ca_path: "/path/to/ca_cert.pem"
171 state: "absent"
172 volume_id: "Disk.Virtual.5:RAID.Slot.1-1"
173 tags:
174 - delete_volume
175 delegate_to: localhost