2020-01-22 22:42:44 +00:00
|
|
|
---
|
|
|
|
title: users
|
|
|
|
type: docs
|
|
|
|
---
|
|
|
|
|
2022-06-20 20:42:56 +00:00
|
|
|
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.users) [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.users?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.users) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/ansible/xoxys.users/src/branch/main/LICENSE)
|
2020-01-31 10:44:27 +00:00
|
|
|
|
|
|
|
Manage users and default bash environment.
|
2020-01-22 22:42:44 +00:00
|
|
|
|
2022-06-20 20:42:56 +00:00
|
|
|
<!--more-->
|
|
|
|
|
2022-03-03 20:36:08 +00:00
|
|
|
- [Default Variables](#default-variables)
|
|
|
|
- [users_bash_bashrc_overrides](#users_bash_bashrc_overrides)
|
|
|
|
- [users_default_groups](#users_default_groups)
|
|
|
|
- [users_default_users](#users_default_users)
|
|
|
|
- [users_global_bash_aliases](#users_global_bash_aliases)
|
2022-09-18 12:27:18 +00:00
|
|
|
- [users_global_umask](#users_global_umask)
|
|
|
|
- [users_pass_min_day](#users_pass_min_day)
|
2022-09-18 20:07:43 +00:00
|
|
|
- [users_session_timeout](#users_session_timeout)
|
2022-03-03 20:36:08 +00:00
|
|
|
- [Dependencies](#dependencies)
|
2020-01-22 22:42:44 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Default Variables
|
|
|
|
|
|
|
|
### users_bash_bashrc_overrides
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_bash_bashrc_overrides: []
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_bash_bashrc_overrides:
|
|
|
|
- /etc/skel/.bashrc
|
|
|
|
- /root/.bashrc
|
|
|
|
```
|
|
|
|
|
|
|
|
### users_default_groups
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_default_groups: []
|
|
|
|
```
|
|
|
|
|
|
|
|
### users_default_users
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_default_users: []
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Example usage
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_default_users:
|
|
|
|
- name: admin
|
|
|
|
groups:
|
|
|
|
- wheel
|
|
|
|
password: "secure"
|
2022-09-12 14:33:13 +00:00
|
|
|
sshkeys: |
|
|
|
|
"ssh-ed25519 AAAA..."
|
2020-01-22 22:42:44 +00:00
|
|
|
shell: /bin/bash
|
|
|
|
```
|
|
|
|
|
|
|
|
### users_global_bash_aliases
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_global_bash_aliases:
|
|
|
|
- alias: ll
|
|
|
|
command: ls -lh
|
|
|
|
- alias: la
|
|
|
|
command: ls -lha
|
|
|
|
```
|
|
|
|
|
2022-09-18 12:27:18 +00:00
|
|
|
### users_global_umask
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_global_umask: '022'
|
|
|
|
```
|
|
|
|
|
|
|
|
### users_pass_min_day
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_pass_min_day: 1
|
|
|
|
```
|
|
|
|
|
2022-09-18 20:07:43 +00:00
|
|
|
### users_session_timeout
|
|
|
|
|
|
|
|
#### Default value
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
users_session_timeout: 300
|
|
|
|
```
|
|
|
|
|
2022-03-03 20:36:08 +00:00
|
|
|
|
|
|
|
|
2020-01-22 22:42:44 +00:00
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
None.
|