1
0
Fork 0
forked from hmx/make_users

new readme

This commit is contained in:
holger 2026-07-15 18:33:53 +02:00
parent ecbe40af1d
commit 61dd0f6b97

View file

@ -1,15 +1,18 @@
# How to use:
## Adding a new user
To create a ssh key pair on the new users PC.
To create a ssh key pair on the new users PC:
```bash
ssh-keygen -f new_floss_key
The 'private' part should NEVER leave the user's PC.
( It is a good idea to add a keyphrase to protect the key, if the client PC is ever stolen or hacked.)
you only need: new_floss_key.pub
You only need: new_floss_key.pub
open inventory/group_vars/all/users.yaml
add a new entry:
- open inventory/group_vars/all/users.yaml
- add a new entry:
```yaml
- username: alice
groups:
- ssh_login
@ -19,15 +22,17 @@ add a new entry:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... alice@laptop
- replace this ^^^^ line, with new_floss_key.pub...
deploy with:
ansible-playbook site.yaml
### Deploy with:
- ansible-playbook site.yaml
## delete user:
open inventory/group_vars/all/users.yaml
add:
## Delete user:
- open inventory/group_vars/all/users.yaml
- add:
```yaml
- username: alice
__state: absent__
and rerun:
- run:
```yaml
ansible-playbook site.yaml