W3cubDocs

/Ansible

hpe.nimble.hpe_nimble_user_policy – Manage the HPE Nimble Storage user policies

Note

This plugin is part of the hpe.nimble collection (version 1.1.3).

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_policy.

New in version 1.0.0: of hpe.nimble

Synopsis

  • Manage the user policies 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 Choices/Defaults Comments
allowed_attempts
integer
Number of authentication attempts allowed before the user account is locked. Allowed range is [1, 10] inclusive. '0' indicates no limit.
digit
integer
Number of numerical characters required in user passwords. Allowed range is [0, 255] inclusive.
host
string / required
HPE Nimble Storage IP address.
lower
integer
Number of lowercase characters required in user passwords. Allowed range is [0, 255] inclusive.
max_sessions
integer
Maximum number of sessions allowed for a group. Allowed range is [10, 1000] inclusive.
min_length
integer
Minimum length for user passwords. Allowed range is [8, 255] inclusive.
no_reuse
integer
Number of times that a password must change before you can reuse a previous password. Allowed range is [1,20] inclusive.
password
string / required
HPE Nimble Storage password.
previous_diff
integer
Number of characters that must be different from the previous password. Allowed range is [1, 255] inclusive.
special
integer
Number of special characters required in user passwords. Allowed range is [0, 255] inclusive.
state
string / required
    Choices:
  • present
The user policy operation.
upper
integer
Number of uppercase characters required in user passwords. Allowed range is [0, 255] inclusive.
username
string / required
HPE Nimble Storage user name.

Notes

Note

  • This module does not support check_mode.

Examples

- name: Update user policy
  hpe.nimble.hpe_nimble_user_policy:
    host: "{{ host }}"
    username: "{{ username }}"
    password: "{{ password }}"
    upper: "{{ upper }}"
    allowed_attempts: 2
    min_length: 10
    state: "present"

Authors

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/hpe/nimble/hpe_nimble_user_policy_module.html