Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general. You need further requirements to be able to use this module, see Requirements for details.
To use it in a playbook, specify: community.general.ibm_sa_vol_map.
The below requirements are needed on the host that executes this module.
Parameter | Comments |
|---|---|
cluster string | Maps the volume to a cluster. |
endpoints string / required | The hostname or management IP of Spectrum Accelerate storage system. |
host string | Maps the volume to a host. |
lun string | The LUN identifier. |
override string | Overrides the existing volume mapping. |
password string / required | Password for username on the Spectrum Accelerate storage system. |
state string | When the state is present the volume is mapped. When the state is absent, the volume is meant to be unmapped. Choices:
|
username string / required | Management user on the Spectrum Accelerate storage system. |
vol string / required | Volume name. |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: none | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
Note
pip install pyxcli in order to get pyxcli.- name: Map volume to host.
community.general.ibm_sa_vol_map:
vol: volume_name
lun: 1
host: host_name
username: admin
password: secret
endpoints: hostdev-system
state: present
- name: Map volume to cluster.
community.general.ibm_sa_vol_map:
vol: volume_name
lun: 1
cluster: cluster_name
username: admin
password: secret
endpoints: hostdev-system
state: present
- name: Unmap volume.
community.general.ibm_sa_vol_map:
host: host_name
username: admin
password: secret
endpoints: hostdev-system
state: absent
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/ibm_sa_vol_map_module.html