hpe.nimble.hpe_nimble_pool – Manage the HPE Nimble Storage pools
Note
This plugin 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
.
To use it in a playbook, specify: hpe.nimble.hpe_nimble_pool
.
New in version 1.0.0: of hpe.nimble
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 |
---|---|
List of arrays in the pool with detailed information. To create or update array list, only array ID is required. |
|
Change name of the existing pool. |
|
Indicates if dedupe is enabled by default for new volumes on this pool. Choices:
|
|
Text description of pool. |
|
Forcibly delete the specified pool even if it contains deleted volumes whose space is being reclaimed. Forcibly remove an array from array_list via an update operation even if the array is not reachable. There should no volumes in the pool for the force update operation to succeed. Choices:
|
|
HPE Nimble Storage IP address. |
|
Indicates if this is the default pool. Choices:
|
|
Merge the specified pool into the target pool. All volumes on the specified pool are moved to the target pool and the specified pool is then deleted. All the arrays in the pool are assigned to the target pool. Choices:
|
|
Name of the pool. |
|
HPE Nimble Storage password. |
|
The pool operation. Choices:
|
|
Name of the target pool. |
|
HPE Nimble Storage user name. |
Examples
# if state is create , then create a pool if not present. Fails if already present.
# if state is present, then create a pool if not present. Succeed if it already exists.
- name: Create pool if not present
hpe.nimble.hpe_nimble_pool:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
state: "{{ state | default('present') }}"
name: "{{ name }}"
array_list: "{{ array_list }} "
description: "{{ description }}"
- name: Delete pool
hpe.nimble.hpe_nimble_pool:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
state: absent
Authors
HPE Nimble Storage Ansible Team (@ar-india) <nimble-dcs-storage-automation-eng@hpe.com>