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
.
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_user
.
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 users 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 |
---|---|
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: |
|
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. |
Notes
Note
This module does not support
check_mode
.
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