dn42-ansible/roles/sysadmin_users
2025-03-03 21:27:02 +01:00
..
defaults Import from elsewhere 2025-03-03 20:37:51 +01:00
files/tobast Import from elsewhere 2025-03-03 20:37:51 +01:00
tasks Fixups for initial run 2025-03-03 21:27:02 +01:00
templates Import from elsewhere 2025-03-03 20:37:51 +01:00
vars Import from elsewhere 2025-03-03 20:37:51 +01:00
README.md Import from elsewhere 2025-03-03 20:37:51 +01:00

Sysadmin users

Creates UNIX users and home directories for each sysadmin. Also takes care of disabling former sysadmin users.

Variables

  • sysadmins: list of usernames of the current sysadmins, ie. people that have an account on the various machines and are sudoers. This value can be overridden to have different sysadmins on a specific machine. Please refer to defaults/main.yml for the current default value.
  • former_sysadmins: list of usernames of the former sysadmins, ie. people that used to have a sudoer account on the machines and must now be disabled (ie., cannot log in anymore). Please refer to defaults/main.yml for the current default value.
  • sysadmins_groups: additional groups in which the sysadmins belong. Defaults to adm sudonopass.

Role variables (cannot be overridden)

  • sysadmins_details: dictionary mapping sysadmin or former sysadmin logins to the given user's configuration. This variable is set as a role variable: we might want different sysadmins on various machines, but we want a consistent configuration of the defined users. Each entry contains:
    • full_name: full name of the sysadmin.
    • email: email address of the sysadmin
    • ssh_keys: list of ssh public keys. PLEASE KEEP IN MIND that it is your responsability to keep your private key safe. In particular, once you add a computer's public key here, always lock your computer and have a strong passphrase.
    • shell: shell this user wants to use.
    • deploy_files: list of src/dest entries that will be deployed from this role's files to the user's home directory.