Note
This plugin is part of the netapp.elementsw collection (version 20.11.0).
To install it use: ansible-galaxy collection install netapp.elementsw
.
To use it in a playbook, specify: netapp.elementsw.na_elementsw_access_group_volumes
.
New in version 20.1.0: of netapp.elementsw
The below requirements are needed on the host that executes this module.
Parameter | Choices/Defaults | Comments |
---|---|---|
access_group string / required | Name or id for the access group to add volumes to, or remove volumes from | |
account_id string / required | Account ID for the owner of this volume. It accepts either account_name or account_id if account_id is numeric, look up for account_id first, then look up for account_name If account_id is not numeric, look up for account_name | |
hostname string / required | The hostname or IP address of the SolidFire cluster. For na_elementsw_cluster, the Management IP (MIP) or hostname of the node to initiate the cluster creation from. | |
password string / required | Password for the specified user. aliases: pass | |
state string |
| Whether the specified volumes should exist or not for this access group. |
username string / required | Please ensure that the user has the adequate permissions. For more information, please read the official documentation https://mysupport.netapp.com/documentation/docweb/index.html?productID=62636&language=en-US. aliases: user | |
volumes list / elements=string / required | List of volumes to add/remove from/to the access group. It accepts either volume_name or volume_id |
Note
- name: Add Volumes to Access Group na_elementsw_access_group: hostname: "{{ elementsw_hostname }}" username: "{{ elementsw_username }}" password: "{{ elementsw_password }}" state: present access_group: AnsibleAccessGroup volumes: ['vol7','vol8','vol9'] account_id: '1' - name: Remove Volumes from Access Group na_elementsw_access_group: hostname: "{{ elementsw_hostname }}" username: "{{ elementsw_username }}" password: "{{ elementsw_password }}" state: absent access_group: AnsibleAccessGroup volumes: ['vol7','vol9'] account_id: '1'
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
msg string | success | Success message |
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/netapp/elementsw/na_elementsw_access_group_volumes_module.html