ibm.storage_virtualize.ibm_sv_manage_security module – This module manages security options on IBM Storage Virtualize family storage systems
Note
This module is part of the ibm.storage_virtualize collection (version 2.1.0).
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 ibm.storage_virtualize
.
To use it in a playbook, specify: ibm.storage_virtualize.ibm_sv_manage_security
.
New in ibm.storage_virtualize 2.1.0
Synopsis
Ansible interface to manage ‘chsecurity’ command.
Parameters
Parameter |
Comments |
---|---|
Specifies whether the system prevents the user from reusing a previous password. Choices:
|
|
Specifies the amount of time (in minutes) in range 5 - 240 before a session expires and the user is logged out of the CLI for inactivity. |
|
The hostname or management IP of the Storage Virtualize storage system. |
|
Specifies whether CIMOM access must be disabled for the superuser. Choices:
|
|
Specifies whether GUI access must be disabled for the superuser. Choices:
|
|
Specifies whether REST API access must be disabled for the superuser. Choices:
|
|
Domain for the Storage Virtualize storage system. Valid when hostname is used for the parameter clustername. |
|
Specifies the number of days in range 0 -30 before a password expires to raise a warning. The warning is displayed on every CLI login until the password is changed. A value of 0 means that the feature is disabled and warnings are not displayed. |
|
Specifies the amount of time (in minutes) in range 5 - 240 before a session expires and the user is logged out of the GUI for inactivity. |
|
Specifies the number of minutes in range 0 - 10080 that a user is locked out for if the max failed logins value is reached. A value of 0 implies the user is indefinitely locked out when the max failed login attempts are reached. |
|
Path of debug log file. |
|
Specifies the number of failed login attempts in range 0 -10 before the user account is locked for the amount of time that is specified in lockout period. A value of 0 means that the feature is disabled and accounts are not locked out after failed login attempts. |
|
Specifies the number of previous passwords in range 0 - 10 to compare with if checkpasswordhistory is enabled. A value of 0 means that the new password is compared with the current password only. |
|
Specifies the minimum number of days between password changes in range 0 -365. This setting is enforced if checkpasswordhistory is enabled. This restriction is ignored if the password is expired. The setting does nothing if the value is greater than the passwordexpiry value. |
|
Specifies the minimum length requirement in range 6 -64 for user account passwords on the system. |
|
REST API password for the Storage Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
|
Specifies mimimum number of digits in range 0 -3 required in passwords for local users. |
|
Specifies the number of days in range 0 - 365 before a password expires. A value of 0 means the feature is disabled and passwords do not expire. |
|
Specifies number of minimum lowercase characters in range 0 - 3 required in passwords for local users. |
|
Specifies number of minimum required special characters in range 0 - 3 in passwords for local users. |
|
Specifies number of minimum uppercase characters in range 0 - 3 in passwords for local users. |
|
Resets the SSH protocol security level to the default value 3 and configures the system to automatically follow the suggested level. Choices:
|
|
Specifies token expiry time in minutes in the range 10 - 120. |
|
Specifies the duration of time in seconds in range 15-1800, a user has to enter login factors per SSH connection before the connection is terminated. |
|
Specifies the amount of allowed login attempts (in range 1-10) per a single SSH connection. |
|
Specifies the numeric value for the SSH security level setting in range 1 - 3. The level 1 Allows the following key exchange methods curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group-exchange-sha256 diffie-hellman-group16-sha512 diffie-hellman-group18-sha512 diffie-hellman-group14-sha256 diffie-hellman-group14-sha1 diffie-hellman-group1-sha1 diffie-hellman-group-exchange-sha1 The level 2 Allows the following key exchange methods curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group-exchange-sha256 diffie-hellman-group16-sha512 diffie-hellman-group18-sha512 diffie-hellman-group14-sha256 diffie-hellman-group14-sha1 The level 3 Allows the following key exchange methods curve25519-sha256 curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group-exchange-sha256 diffie-hellman-group16-sha512 diffie-hellman-group18-sha512 diffie-hellman-group14-sha256 |
|
Specifies whether the locking policy configured on the system also applies to the superuser. The value is either enable or disable. This parameter is only supported on systems with a dedicated technician port. Choices:
|
|
Specifies whether the superuser should be prompted for multifactor authentication. Choices:
|
|
Specifies whether the superuser must provide both a password and SSH key for authentication. Choices:
|
|
The authentication token to verify a user on the Storage Virtualize storage system. To generate a token, use the ibm_svc_auth module. |
|
REST API username for the Storage Virtualize storage system. The parameters username and password are required if not using token to authenticate a user. |
|
Validates certification. Choices:
|
Notes
Note
This module supports
check_mode
.
Examples
- name: Change max failed login limit
ibm.storage_virtualize.ibm_sv_manage_security:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
maxfailedlogins: 5
- name: Change SSH protocol level
ibm.storage_virtualize.ibm_sv_manage_security:
clustername: "{{cluster}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
sshprotocol: 2