Code/user

user

Ansible role that sets up my user on a dedicated machine.

yannick

README

User

User creation with SSH keys, dotfiles, and shell configuration.

Key Parameters

Variable Default Description
my_user_username yannick Username to create
my_user_groups [docker, sudo] Additional groups for the user
my_user_shell /usr/bin/zsh Login shell
user_ssh_keys [] Public keys to add to authorized_keys
user_ssh_github_user yschulz GitHub username for SSH key fallback import
user_dotfiles_repo (vault) Private dotfiles git repository URL
user_dotfiles_access_token (vault) Token for cloning private dotfiles repo
user_passwordless_sudo true Add user to passwordless sudo

Workflow

  1. Install zsh
  2. Create user with configured groups and shell
  3. Generate SSH keypair (if not present)
  4. Add authorized SSH keys (from list or GitHub)
  5. Clone and install dotfiles repository
  6. Set ACLs and home directory permissions

Quick Actions

Browse FilesView Commits
git clone https://rakys.xyz/git/user.git

Repository Statistics

0
Stars
0
Forks
1
Watchers
0
Issues
Default Branch:main
Created:August 23, 2025
Last Updated:February 23, 2026
Repository Size:0.04 KB