[Mirror] Ansible Rolle zur verwaltung SSH Keys
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lilian Roller 4257ae6c29
Improve for root login
6 days ago
.github Update Dounding info 3 weeks ago
defaults Update key management 1 week ago
files/home_environment some more or **less** usefull aditions 8 months ago
tasks Improve for root login 6 days ago
templates improve usage of variables 1 week ago
vars Improve for root login 6 days ago
LICENSE Update LICENSE Information 1 month ago
README.md more dynamic configuration 4 months ago



Ansible Rolle to setup users and deploy your ssh keys


  • admins (default []):
    A list of ssh keys allowed to log in as root.

  • accounts (defailt []):
    A list of usernames theat will be created on this host, if they don’t exisit

  • users (default {}):
    A dict of user names mapping to lists of ssh keys allowed to log in to the given user account.

  • ssh_public_key_store (default ssh_public_keys):
    A directory path where the public key files can be found by ansible.

For aditional variables please have a look into defaults/main.yml!


This role assumes that the public parts of all required ssh keys can be found within the directory ssh_public_key_store. The file names must follow the convention: username_idalg.pub are are matched by the username part.


Alice and Bob may log in and are allowed to become root with the sudo command on this host:

  - alice
  - bob

Alice, Bob and Eve may log in to ther own user accounts via ssh:

    - alice
    - eve@device1
    - eve@device2

Eve can do so with two different ssh keys. Alice only with his only SSH Key.

The files/ssh_public_keys/ contains the following files:


Alice, Bob and Eve want to be users on this host:

  - alice
  - bob
  - eve

Generate ed25519 SSH Keys

ssh-keygen -t ed25519