Note
This plugin is part of the netapp.elementsw collection.
To install it use: ansible-galaxy collection install netapp.elementsw.
To use it in a playbook, specify: netapp.elementsw.na_elementsw_initiators.
New in version 2.8.0: of netapp.elementsw
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments | |
|---|---|---|---|
| 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. | ||
| initiators list / elements=dictionary | A list of objects containing characteristics of each initiator. | ||
| alias string | The friendly name assigned to this initiator. | ||
| attributes dictionary | A set of JSON attributes to assign to this initiator. | ||
| initiator_id integer | The numeric ID of the initiator. | ||
| name string / required | The name of the initiator. | ||
| volume_access_group_id integer | volumeAccessGroupID to which this initiator belongs. | ||
| password string / required | Password for the specified user. aliases: pass | ||
| state string |
| Whether the specified initiator should exist or not. | |
| 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 | ||
Note
- name: Manage initiators
tags:
- na_elementsw_initiators
na_elementsw_initiators:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
initiators:
- name: a
alias: a1
initiator_id: 1
volume_access_group_id: 1
attributes: {"key": "value"}
- name: b
alias: b2
initiator_id: 2
volume_access_group_id: 2
state: present
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–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/netapp/elementsw/na_elementsw_initiators_module.html