hpe.nimble.hpe_nimble_user module – Manage the HPE Nimble Storage users
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_user
.
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 |
---|---|
Authorization password for changing password. |
|
Change name of the existing user. |
|
Description of the user. |
|
User is currently disabled. Choices:
|
|
Email address of the user. |
|
Fully qualified name of the user. |
|
HPE Nimble Storage IP address. |
|
The amount of time that the user session is inactive before timing out. A value of 0 indicates that the timeout is taken from the group setting. Default: 0 |
|
Name of the user. |
|
HPE Nimble Storage password. |
|
Role of the user. Default is ‘guest’. Choices:
|
|
The user operation. Choices:
|
|
Unlock the user. Choices:
|
|
User’s login password. |
|
HPE Nimble Storage user name. |
Examples
# if state is create, then create user, fails if it exist or cannot create
# if state is present, then create user if not present, else success
- name: Create user
hpe.nimble.hpe_nimble_user:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
description: "{{ description }}"
state: "{{ state | default('present') }}"
- name: Delete user
hpe.nimble.hpe_nimble_user:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
state: "absent"
- name: Unlock user
hpe.nimble.hpe_nimble_user:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
name: "{{ name }}"
state: "present"
unlock: true
Authors
HPE Nimble Storage Ansible Team (@ar-india)