hpe.nimble.hpe_nimble_fc module – Manage the HPE Nimble Storage Fibre Channel
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
.
To use it in a playbook, specify: hpe.nimble.hpe_nimble_fc
.
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 |
---|---|
Name or serial number of array where the interface is hosted. |
|
Name (A or B) of the controller where the interface is hosted. |
|
HPE Nimble Storage IP address. |
|
Update fibre channel configuration after hardware changes. Possible values:- ‘true’ ‘false’. Choices:
|
|
Name of fibre channel interface |
|
Identify whether the fibre channel interface is online. Possible values:- ‘true’ ‘false’. Choices:
|
|
HPE Nimble Storage password. |
|
Check if the interfaces are offline before regenerating the WWNN. Possible values:- ‘true’ ‘false’. Choices:
|
|
Regenerate fibre channel configuration. Possible values:- ‘true’ ‘false’. Choices:
|
|
The fibre channel operation. Choices:
|
|
HPE Nimble Storage user name. |
|
Base WWNN. Six bytes expressed in hex separated by colons. Example:- ‘af:32:f1’. |
Examples
- name: Update fibre channel interface
hpe.nimble.hpe_nimble_fc:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
array_name_or_serial: "{{ array_name_or_serial | mandatory }}"
name: "{{ name | mandatory }}"
controller: "{{ controller | mandatory }}"
online: "{{ online | mandatory }}"
state: "{{ 'present' }}"
- name: Regenerate fibre channel config
hpe.nimble.hpe_nimble_fc:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
array_name_or_serial: "{{ array_name_or_serial | mandatory }}" # provide the group_leader_array name
wwnn_base_str: "{{ wwnn_base_str | mandatory }}"
regenerate: true
precheck: true
state: "{{ 'present' }}"
- name: Hardware upgrade for fibre channel
hpe.nimble.hpe_nimble_fc:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
array_name_or_serial: "{{ array_name_or_serial | mandatory }}"
hw_upgrade: true
state: "{{ 'present' }}"
Authors
HPE Nimble Storage Ansible Team (@ar-india)