Skip to content

Create multiple users on multiple servers with different keys and different rights

Notifications You must be signed in to change notification settings

federico-galli/ansible-create-users

 
 

Repository files navigation

ansible-create-users

Create on each server (file hosts) users from the list (file users.yml).

User Settings

  • Shell = /bin/bash
  • Add the public key in pub_keys dir (username.pub)
  • In users.yml specify that user should have the right to sudo or not

Distros tested

Works on every machine were Ansible works.

Usage

  • Install Ansible
  • Create keys
  • Configure users and provide authorized_keys
  • Run
ansible-playbook -i ,hosts create_users.yml

About

Create multiple users on multiple servers with different keys and different rights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published