hpe.nimble.hpe_nimble_disk module – Manage the HPE Nimble Storage disk
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_disk
.
New in hpe.nimble 1.0.0
Synopsis
Manage disks 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 |
---|---|
The intended operation to be performed on the specified disk. Choices:
|
|
Forcibly add a disk. Choices:
|
|
HPE Nimble Storage IP address. |
|
HPE Nimble Storage password. |
|
Position of the shelf the disk belongs to. |
|
Disk slot number. |
|
The disk operation. Choices:
|
|
HPE Nimble Storage user name. |
Notes
Note
This module does not support
check_mode
.
Examples
- name: Update Disk
hpe.nimble.hpe_nimble_disk:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
slot: "{{ slot | mandatory }}"
shelf_location: "{{ shelf_location | mandatory }}"
disk_op: "{{ disk_op | mandatory }}"
force: "{{ force }}"
state: present