Thanks to visit codestin.com
Credit goes to github.com

Skip to content

nola-radar/ansible-add-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-add-user

Ansible playbook to add ssh users to Linux and give them 'sudo' access.

Note: Put public user keys in 'dev' directory.

Usage

$ ansible-playbook add-user.yaml

What is the username?: joe-user
Key name?: joe-user (No need to put .pub extension)
hostnames: dev-000:dev-111:dev-222 (Use a ':' between hostnames if you're adding to more than one machine.)

joe-user added.

Update existing user's key.

Run 'update-pkey.yaml'

About

Ansible playbook to add ssh users to Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published