1
0
forked from finallycoffee/base

feat: add user role

This commit is contained in:
2025-01-12 10:24:03 +01:00
parent 62263726fa
commit 1024921a74
5 changed files with 81 additions and 0 deletions

23
roles/user/README.md Normal file
View File

@ -0,0 +1,23 @@
# `finallycoffee.base.user` ansible role
Provision and manage user accounts on the remote host. Supports setting user
home, gecos (display name) and shell.
Warning: if the users' home exists and is changed, the role will attempt to
move the home directory. Set `move_home` to false on the user to disable this
behaviour.
## Examples
```yaml
- hosts: all
roles:
- role: finallycoffee.base.user
vars:
users:
- name: root
- name: alice
- name: bob
state: present
- name: eve
state: absent
```