arillso.system.users role – Cross-platform user management
Note
This role is part of the arillso.system collection (version 0.0.34).
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 arillso.system
.
To use it in a playbook, specify: arillso.system.users
.
Entry point create_user_linux
– Linux user management
Synopsis
This role manages Linux users, their home directories, SSH keys,
and file permissions based on OS-specific variables.
Parameters
Parameter |
Comments |
---|---|
A list of users with their properties to be ensured on the system. |
|
SSH keys to add to the user’s authorized_keys file. Optional. |
|
Primary group for the user. Optional, system default is used if not specified. |
|
List of additional groups the user will be added to. Optional. |
|
Home directory to create or manage. Optional if system default is used. |
|
Full name of the user. Optional, but recommended for clarity. |
|
Password for the user, can be optionally hashed. Optional, but recommended for security. |
|
The shell assigned to the user. Optional, defaults to system standard. |
|
Indicates whether to generate SSH keys for the user. Default is false. Choices:
|
|
Specifies if the user is a system account. Default is false. Choices:
|
|
The numeric user id for the user. Optional for system-generated IDs. |
|
Determines whether to update the password if it differs from the current one. Optional. |
|
The username of the account. |
Entry point create_user_windows
– Windows user management
Synopsis
This section manages Windows user accounts, setting properties,
managing group memberships, and editing registry settings for user configurations.
Parameters
Parameter |
Comments |
---|---|
A list of users with their properties to be ensured on the system. |
|
SSH keys to add to the user’s authorized_keys file. Optional. |
|
Primary group for the user. Optional, system default is used if not specified. |
|
List of additional groups the user will be added to. Optional. |
|
Home directory to create or manage. Optional if system default is used. |
|
Full name of the user. Optional, but recommended for clarity. |
|
Password for the user, can be optionally hashed. Optional, but recommended for security. |
|
The shell assigned to the user. Optional, defaults to system standard. |
|
Indicates whether to generate SSH keys for the user. Default is false. Choices:
|
|
Specifies if the user is a system account. Default is false. Choices:
|
|
The numeric user id for the user. Optional for system-generated IDs. |
|
Determines whether to update the password if it differs from the current one. Optional. |
|
The username of the account. |
Entry point main
– Cross-platform user management
Synopsis
This role manages user accounts on both Linux and Windows systems.
It applies OS-specific configurations and handles user attributes,
such as home directories, SSH keys, and permissions.
Parameters
Parameter |
Comments |
---|---|
Whether to exclusively manage the ‘authorized_keys’ file. Default is ‘no’. Default: |
|
Default primary group for users. Not set by default. |
|
A list of users with their properties to be ensured on the system. |
|
SSH keys to add to the user’s authorized_keys file. Optional. |
|
Primary group for the user. Optional, system default is used if not specified. |
|
List of additional groups the user will be added to. Optional. |
|
Home directory to create or manage. Optional if system default is used. |
|
Full name of the user. Optional, but recommended for clarity. |
|
Password for the user, can be optionally hashed. Optional, but recommended for security. |
|
The shell assigned to the user. Optional, defaults to system standard. |
|
Indicates whether to generate SSH keys for the user. Default is false. Choices:
|
|
Specifies if the user is a system account. Default is false. Choices:
|
|
The numeric user id for the user. Optional for system-generated IDs. |
|
Determines whether to update the password if it differs from the current one. Optional. |
|
The username of the account. |
|
List of default secondary groups for users. Defaults to an empty list. Default: |
|
Default home directory path for users. Default is ‘/home’. Default: |
|
Default permissions for users’ home directories. Default is ‘0755’. Default: |
|
A list of users with their properties to be ensured on the system. |
|
SSH keys to add to the user’s authorized_keys file. Optional. |
|
Primary group for the user. Optional, system default is used if not specified. |
|
List of additional groups the user will be added to. Optional. |
|
Home directory to create or manage. Optional if system default is used. |
|
Full name of the user. Optional, but recommended for clarity. |
|
Password for the user, can be optionally hashed. Optional, but recommended for security. |
|
The shell assigned to the user. Optional, defaults to system standard. |
|
Indicates whether to generate SSH keys for the user. Default is false. Choices:
|
|
Specifies if the user is a system account. Default is false. Choices:
|
|
The numeric user id for the user. Optional for system-generated IDs. |
|
Determines whether to update the password if it differs from the current one. Optional. |
|
The username of the account. |
|
A list of users with their properties to be ensured on the system. |
|
SSH keys to add to the user’s authorized_keys file. Optional. |
|
Primary group for the user. Optional, system default is used if not specified. |
|
List of additional groups the user will be added to. Optional. |
|
Home directory to create or manage. Optional if system default is used. |
|
Full name of the user. Optional, but recommended for clarity. |
|
Password for the user, can be optionally hashed. Optional, but recommended for security. |
|
The shell assigned to the user. Optional, defaults to system standard. |
|
Indicates whether to generate SSH keys for the user. Default is false. Choices:
|
|
Specifies if the user is a system account. Default is false. Choices:
|
|
The numeric user id for the user. Optional for system-generated IDs. |
|
Determines whether to update the password if it differs from the current one. Optional. |
|
The username of the account. |
|
Default SSH key bit length for users. Default is 2048. Default: |
|
Default SSH key type for users. Default is ‘rsa’. Default: |