Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: Storage volume configuration on iDRAC.
3 hosts: idrac
4 gather_facts: false
5
6 tasks:
7 - name: Create single volume.
8 dellemc.openmanage.idrac_storage_volume:
9 idrac_ip: "{{ idrac_ip }}"
10 idrac_user: "{{ idrac_user }}"
11 idrac_password: "{{ idrac_password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 state: "create"
14 controller_id: "RAID.Slot.1-1"
15 volumes:
16 - drives:
17 location: [5]
18 delegate_to: localhost
19 tags:
20 - create_single_volume
21
22 - name: Create multiple volume.
23 dellemc.openmanage.idrac_storage_volume:
24 idrac_ip: "{{ idrac_ip }}"
25 idrac_user: "{{ idrac_user }}"
26 idrac_password: "{{ idrac_password }}"
27 ca_path: "/path/to/ca_cert.pem"
28 raid_reset_config: "True"
29 state: "create"
30 controller_id: "RAID.Slot.1-1"
31 volume_type: "RAID 1"
32 span_depth: 1
33 span_length: 2
34 number_dedicated_hot_spare: 1
35 disk_cache_policy: "Enabled"
36 write_cache_policy: "WriteBackForce"
37 read_cache_policy: "ReadAhead"
38 stripe_size: 65536
39 capacity: 100
40 raid_init_operation: "Fast"
41 volumes:
42 - name: "volume_1"
43 drives:
44 id:
45 [
46 "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Slot.1-1",
47 "Disk.Bay.2:Enclosure.Internal.0-1:RAID.Slot.1-1",
48 ]
49 - name: "volume_2"
50 volume_type: "RAID 5"
51 span_length: 3
52 span_depth: 1
53 drives:
54 location: [7, 3, 5]
55 disk_cache_policy: "Disabled"
56 write_cache_policy: "WriteBack"
57 read_cache_policy: "NoReadAhead"
58 stripe_size: 131072
59 capacity: "200"
60 raid_init_operation: "None"
61 delegate_to: localhost
62 tags:
63 - create_multiple_volume
64
65 - name: Delete single volume.
66 dellemc.openmanage.idrac_storage_volume:
67 idrac_ip: "{{ idrac_ip }}"
68 idrac_user: "{{ idrac_user }}"
69 idrac_password: "{{ idrac_password }}"
70 ca_path: "/path/to/ca_cert.pem"
71 state: "delete"
72 volumes:
73 - name: "volume_1"
74 delegate_to: localhost
75 tags:
76 - delete_single_volume
77
78 - name: Delete multiple volume.
79 dellemc.openmanage.idrac_storage_volume:
80 idrac_ip: "{{ idrac_ip }}"
81 idrac_user: "{{ idrac_user }}"
82 idrac_password: "{{ idrac_password }}"
83 ca_path: "/path/to/ca_cert.pem"
84 state: "delete"
85 volumes:
86 - name: "volume_1"
87 - name: "volume_2"
88 delegate_to: localhost
89 tags:
90 - delete_multiple_volume
91
92 - name: View specific volume details.
93 dellemc.openmanage.idrac_storage_volume:
94 idrac_ip: "{{ idrac_ip }}"
95 idrac_user: "{{ idrac_user }}"
96 idrac_password: "{{ idrac_password }}"
97 ca_path: "/path/to/ca_cert.pem"
98 state: "view"
99 controller_id: "RAID.Slot.1-1"
100 volume_id: "Disk.Virtual.0:RAID.Slot.1-1"
101 delegate_to: localhost
102 tags:
103 - view_specific_volume
104
105 - name: View all volume details.
106 dellemc.openmanage.idrac_storage_volume:
107 idrac_ip: "{{ idrac_ip }}"
108 idrac_user: "{{ idrac_user }}"
109 idrac_password: "{{ idrac_password }}"
110 ca_path: "/path/to/ca_cert.pem"
111 state: "view"
112 delegate_to: localhost
113 tags:
114 - view_all_volume