hpe.nimble.hpe_nimble_array module – Manage the HPE Nimble Storage array
Note
This module is part of the hpe.nimble collection (version 1.1.4).
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 hpe.nimble
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: hpe.nimble.hpe_nimble_array
.
Note
The hpe.nimble collection is considered unmaintained and will be removed from Ansible 10. See the discussion thread for more information.
New in hpe.nimble 1.0.0
Synopsis
Manage the array on an HPE Nimble Storage group.
Requirements
The below requirements are needed on the host that executes this module.
Ansible 2.9 or later
Python 3.6 or later
HPE Nimble Storage SDK for Python
HPE Nimble Storage arrays running NimbleOS 5.0 or later
Parameters
Parameter |
Comments |
---|---|
A True setting will allow you to add an array with lower limits to a pool with higher limits. Choices:
|
|
Change the name of the existing array. |
|
Whether to create an associated pool during the array creation. Choices:
|
|
Controller A Support IP Address. Four numbers in the range (0,255) separated by periods. |
|
Controller B Support IP Address. Four numbers in the range (0,255) separated by periods. |
|
Perform a failover on the specified array. Choices:
|
|
Forcibly delete the specified array. Choices:
|
|
Halt the specified array. Restarting the array will require physically powering it back on. Choices:
|
|
HPE Nimble Storage IP address. |
|
The user-provided name of the array. It is also the array’s hostname. |
|
List NICs information. Used when creating an array. |
|
HPE Nimble Storage password. |
|
Text description of the pool to be created during array creation. |
|
Name of pool to which this is a member. |
|
Reboot the specified array. Choices:
|
|
Secondary management IP address for the group. |
|
Serial number of the array. |
|
The array operation Choices:
|
|
HPE Nimble Storage user name. |
Notes
Note
This module does not support
check_mode
.
Examples
# if state is create , then create a array if not present. Fails if already present.
# if state is present, then create a array if not present. Succeed if it already exists.
- name: Create array if not present
hpe.nimble.hpe_nimble_array:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
state: "{{ state | default('present') }}"
name: "{{ name }}"
ctrlr_b_support_ip: "{{ ctrlr_b_support_ip | mandatory}}"
ctrlr_a_support_ip: "{{ ctrlr_a_support_ip | mandatory}}"
serial: "{{ serial | mandatory}}"
nic_list: "{{ nic_list | mandatory}}"
pool_name: "{{ pool_name | mandatory}}"
- name: Delete array
hpe.nimble.hpe_nimble_array:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
vol_name: "{{ansible_default_ipv4['address']}}-{{ vol_name }}"
name: "{{ name }}"
state: absent
- name: Failover array
hpe.nimble.hpe_nimble_array:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
failover: true
state: present
- name: Halt array
hpe.nimble.hpe_nimble_array:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
state: present
halt: true
- name: Reboot array
hpe.nimble.hpe_nimble_array:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
state: present
reboot: true