community / community.general / 0.1.1 / module / onyx_username Configure username module Authors: Anas Shami (@anass) preview | supported by communitycommunity.general.onyx_username (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module provides declarative management of users/roles on Mellanox ONYX network devices.
- name: create new user onyx_username: username: anass
- name: set the user full-name onyx_username: username: anass full_name: anasshami
- name: set the user encrypted password onyx_username: username: anass password: 12345 encrypted_password: True
- name: set the user capability onyx_username: username: anass capability: monitor
- name: reset the user capability onyx_username: username: anass reset_capability: True
- name: remove the user configuration onyx_username: username: anass state: absent
state: choices: - present - absent default: present description: - Set state of the given account type: str disabled: choices: - none - login - password - all description: - Disable means of logging into this account type: str password: description: - Set password fot such user type: str username: description: - Create/Edit user using username required: true type: str full_name: description: - Set the full name of this user type: str capability: choices: - monitor - unpriv - v_admin - admin description: - Grant capability to this user account type: str nopassword: default: false description: - Clear password for such user type: bool disconnected: default: false description: - Disconnect all sessions of this user type: bool reset_capability: default: false description: - Reset capability to this user account type: bool encrypted_password: default: false description: - Decide the type of setted password (plain text or encrypted) type: bool
commands: description: The list of configuration mode commands to send to the device. returned: always sample: - username * - username * password * - username * nopassword - username * disable login - username * capability admin - no username * - no username * disable type: list