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

msergiy87/ansible-create-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-create-users

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

ansible-create-users

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

Currently, this is only tested on Ubuntu 14.04 as a client and server machine. It should theoretically work on older versions of Ubuntu or Debian based systems.

Usage

  • install ansible
  • create keys
  • configure client server authorized_keys
  • upload repository and change
  • run command
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