/
/
/
Ansible role that sets up my user on a dedicated machine.
1# User
2
3User creation with SSH keys, dotfiles, and shell configuration.
4
5## Key Parameters
6
7| Variable | Default | Description |
8|----------|---------|-------------|
9| `my_user_username` | `yannick` | Username to create |
10| `my_user_groups` | `[docker, sudo]` | Additional groups for the user |
11| `my_user_shell` | `/usr/bin/zsh` | Login shell |
12| `user_ssh_keys` | `[]` | Public keys to add to `authorized_keys` |
13| `user_ssh_github_user` | `yschulz` | GitHub username for SSH key fallback import |
14| `user_dotfiles_repo` | (vault) | Private dotfiles git repository URL |
15| `user_dotfiles_access_token` | (vault) | Token for cloning private dotfiles repo |
16| `user_passwordless_sudo` | `true` | Add user to passwordless sudo |
17
18## Workflow
19
201. Install zsh
212. Create user with configured groups and shell
223. Generate SSH keypair (if not present)
234. Add authorized SSH keys (from list or GitHub)
245. Clone and install dotfiles repository
256. Set ACLs and home directory permissions
26