Debian Codegraph @

ansible_collections/ibm/storage_virtualize/playbooks/PBHA/create_mdiskgrp_provisioning_policy.yml

raw symbols SCIP
1 - name: Fetch auth token
2 register: auth
3 no_log: true
4 ibm.storage_virtualize.ibm_svc_auth:
5 clustername: "{{ item.cluster_ip }}"
6 username: "{{ item.cluster_username }}"
7 password: "{{ item.cluster_password }}"
8 log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
9
10 - name: Create mdiskgrp
11 ibm.storage_virtualize.ibm_svc_mdiskgrp:
12 clustername: '{{ item.cluster_ip }}'
13 token: '{{ auth.token }}'
14 log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
15 name: "{{ pool_name }}"
16 state: present
17 datareduction: 'yes'
18 ext: 1024
19
20 - name: Get drive info
21 register: results
22 ibm.storage_virtualize.ibm_svc_info:
23 clustername: "{{ item.cluster_ip }}"
24 token: "{{ auth.token }}"
25 log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
26 gather_subset: "drive"
27
28 - name: Make drive in candidate state
29 ibm.storage_virtualize.ibm_sv_manage_drive:
30 clustername: "{{ item.cluster_ip }}"
31 token: "{{ auth.token }}"
32 log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
33 drive_state: candidate
34 drive_id: "{{ Drive.id }}"
35 loop: "{{ results.Drive }}"
36 loop_control:
37 loop_var: Drive
38 when: Drive.use != "member"
39
40 - name: Create distributed array
41 ibm.storage_virtualize.ibm_svc_mdisk:
42 clustername: "{{ item.cluster_ip }}"
43 token: "{{ auth.token }}"
44 log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
45 name: "{{ mdisk_name }}"
46 state: "present"
47 level: "{{ level }}"
48 drivecount: "{{ drivecount }}"
49 driveclass: 0
50 encrypt: 'no'
51 mdiskgrp: "{{ pool_name }}"
52
53 - name: Create provisioning policy
54 ibm.storage_virtualize.ibm_sv_manage_provisioning_policy:
55 clustername: "{{ item.cluster_ip }}"
56 token: "{{ auth.token }}"
57 log_path: "{{ log_path | default('/tmp/ansiblePB.debug') }}"
58 name: "{{ provisioning_policy_name | default('provisioning_policy0') }}"
59 capacitysaving: "drivebased"
60 state: "present"