scale_computing.hypercore.user module – Creates, updates or deletes local hypercore user accounts.
Note
This module is part of the scale_computing.hypercore collection (version 1.6.0).
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 scale_computing.hypercore
.
To use it in a playbook, specify: scale_computing.hypercore.user
.
New in scale_computing.hypercore 1.2.0
Synopsis
Creates, updates or deletes local hypercore user accounts.
The module in general is NOT idempotent. If
password
needs to be changed, then module will report `changed=True`, even if new password value is the same as old password value.
Parameters
Parameter |
Comments |
---|---|
Scale Computing HyperCore instance information. |
|
Select login method. If not set, the value of the Value local - username/password is verified by the HyperCore server (the local users). Value oidc - username/password is verified by the configured OIDC provider. Choices:
|
|
The HyperCore instance URL. If not set, the value of the For example “https://10.1.2.3:443”. |
|
Password used for authentication. If not set, the value of the |
|
Timeout in seconds for the connection with the Scale Computing HyperCore API instance. If not set, the value of the |
|
Username used for authentication. If not set, the value of the |
|
Human-readable display name. |
|
Plain text password for authentication. |
|
Names of the roles this user is a member of. Choices:
|
|
The maximum number of Sessions this user may have at one time. |
|
The desired state of the user account. Use Choices:
|
|
The user name. Serves as unique identifier. If If If |
|
New user name. Relevant only if |
Notes
Note
check_mode
is not supported.
See Also
See also
- scale_computing.hypercore.user_info
Returns information about the users.
Examples
- name: Create new user
scale_computing.hypercore.user:
state: present
username: user
password: password
full_name: User
roles:
- VM delete
- VM Create/Edit
- VM Power Controls
session_limit: 0
- name: Update existing user
scale_computing.hypercore.user:
state: present
username: username
username_new: updated_username
password: updated_password
- name: Delete the user
scale_computing.hypercore.user:
state: absent
username: user
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
User record. Returned: success |
|
Human-readable display name Returned: success Sample: |
|
Role identifiers this user is a member of Returned: success Sample: |
|
The maximum number of Sessions this user may have at one time Returned: success Sample: |
|
Human-readable unique identifier for authentication Returned: success Sample: |
|
Unique identifier Returned: success Sample: |