forked from hmx/make_users
new readme
This commit is contained in:
parent
61dd0f6b97
commit
afeb33ebf0
1 changed files with 6 additions and 2 deletions
|
|
@ -4,12 +4,12 @@
|
||||||
To create a ssh key pair on the new users PC:
|
To create a ssh key pair on the new users PC:
|
||||||
```bash
|
```bash
|
||||||
ssh-keygen -f new_floss_key
|
ssh-keygen -f new_floss_key
|
||||||
|
```
|
||||||
|
|
||||||
The 'private' part should NEVER leave the user's PC.
|
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.)
|
( 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
|
- open inventory/group_vars/all/users.yaml
|
||||||
- add a new entry:
|
- add a new entry:
|
||||||
```yaml
|
```yaml
|
||||||
|
|
@ -21,9 +21,12 @@ You only need: new_floss_key.pub
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... alice@laptop
|
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... alice@laptop
|
||||||
- replace this ^^^^ line, with new_floss_key.pub...
|
- replace this ^^^^ line, with new_floss_key.pub...
|
||||||
|
```
|
||||||
|
|
||||||
### Deploy with:
|
### Deploy with:
|
||||||
|
```bash
|
||||||
- ansible-playbook site.yaml
|
- ansible-playbook site.yaml
|
||||||
|
```
|
||||||
|
|
||||||
## Delete user:
|
## Delete user:
|
||||||
- open inventory/group_vars/all/users.yaml
|
- open inventory/group_vars/all/users.yaml
|
||||||
|
|
@ -34,6 +37,7 @@ You only need: new_floss_key.pub
|
||||||
- run:
|
- run:
|
||||||
```yaml
|
```yaml
|
||||||
ansible-playbook site.yaml
|
ansible-playbook site.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
# Troubleshoot:
|
# Troubleshoot:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue