Debian Codegraph @

ansible_collections/ibm/storage_virtualize/playbooks/map_volume_to_host.yml

raw symbols SCIP
1 ---
2 - name: Testing the IBM Storage Virtualize collection ibm_svc_vol_map
3 hosts: localhost
4 vars:
5 clustername: 'clustername'
6 username: 'username'
7 password: 'password'
8 domain: 'domain'
9 test_vdisk: 'vdisk_name'
10 pool: 'pool'
11 test_host: 'host_name'
12 fcwwpn1: 'fcwwpn'
13
14 gather_facts: false
15 connection: local
16 tasks:
17 - name: Fetch cluster auth token
18 register: auth
19 no_log: true
20 ibm.storage_virtualize.ibm_svc_auth:
21 clustername: "{{ clustername }}"
22 username: "{{ username }}"
23 password: "{{ password }}"
24
25 - name: Create volume
26 ibm.storage_virtualize.ibm_svc_manage_volume:
27 clustername: "{{ clustername }}"
28 token: "{{ auth.token }}"
29 name: "{{ test_vdisk }}"
30 state: present
31 pool: "{{ pool }}"
32 size: "1024"
33 unit: "mb"
34 - name: Creating Host
35 ibm.storage_virtualize.ibm_svc_host:
36 clustername: "{{ clustername }}"
37 token: "{{ auth.token }}"
38 name: "{{ test_host }}"
39 state: present
40 fcwwpn: "{{ fcwwpn1 }}"
41 - name: Map Host to Vdisk
42 ibm.storage_virtualize.ibm_svc_vol_map:
43 clustername: "{{ clustername }}"
44 token: "{{ auth.token }}"
45 volname: "{{ test_vdisk }}"
46 host: "{{ test_host }}"
47 state: present
48 scsi: 0